Re: [TDK-BETA] Questions about beta/OS X
by Kevin Walzer other posts by this author
Feb 15 2007 12:36PM messages near this date
view in the new Beta List Site
Re: [TDK-BETA] Questions about beta/OS X
|
Re: [TDK-BETA] Questions about beta/OS X
Andreas,
Thank you for your replies.
> >
> > 1. Is there a way to specify a custom icon for Mac OS X application
> bundles?
>
> Yes.
>
> > I can't seem to find it in the documentation or in the GUI. The custom
> icon
>
> It is not documented yet. This part is in flux as well, more a hack.
>
> > in tclapp seems to apply to the actual basekit, not to a Mac app bundle.
>
> Go to the panel 'meta data'.
>
> Use the keys
>
> osx,info OS X information string for the bundle
> osx,id OS X identifier for the bundle
> osx,region OS X Development Region (Default: English)
> osx,sign OS X Signature (4 char type code)
>
> osx,help Name of Help Book Folder under English.lproj of the bundle
>
> osx,icon Path of the .icns file to copy into the bundle
> The tail of that path is automatically used as the name
> of the icon.
>
> osx,version CFBundleVersion
> osx,shortversion CFBundleShortVersionString
>
>
I will give this a try and report back.
> > 2. More generally, is there away to specify additional resources to be
> > included in the application bundle, such as help documents?
>
> Neverthless. What resources beyond Help are you thinking about, and how
> would you go on specifying this in the UI ?
>
Icons, the help book, and perhaps external executables.
py2app (Python tool for creating Mac app bundles) has a "data" flag, which
specifies items to be copied into the resources directory of the app bundle
(Myapp.app/Contents/Resources).
Not sure where to specify this in the GUI.
>
> Regarding Icons, do you know if there is Tcl code, or other extension
> around
> for handling .icns files ?
> Display, file type detection, maybe decoding (list of icons inside, sizes,
> etc.) ?
There are none that I am aware of. I have looked at this myself, but it is
beyond my skill to code in C. The Carbon API for accessing icons is found in
IconServices, with calls such as GetIconRef(); this will fetch and display
and image, but it's nothing that Tk can use without some bridging. There is
also an open-source (BSD-license) Cocoa library called IconFamily, but I
don't know how easily Tcl can be bridged to Objective C. I've looked at the
CoreGraphics API's to see if there is any way to convert an icns file to a
GIF or PNG in memory so it could be displayed in Tk, but it's over my head.
Thanks,
Kevin
_________________________________________________________________
Invite your Hotmail contacts to join your friends list with Windows Live
Spaces
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spa
cesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
_______________________________________________
Tdk-beta mailing list
Tdk-beta@[...].com
http://listserv.ActiveState.com/mailman/listinfo/tdk-beta
Thread:
Kevin Walzer
Andreas Kupries
Kevin Walzer
Jeff Hobbs
|