Re: Minimal cocoa application
Re: Minimal cocoa application
- Subject: Re: Minimal cocoa application
- From: Dave Jewell <email@hidden>
- Date: Fri, 9 Mar 2007 18:36:38 +0000
From: "Godwin, Mark R" <email@hidden>
Subject: RE: Minimal cocoa application
To: "Dave Jewell" <email@hidden>, <email@hidden>
I was under the impression that placing your executable in a bundle
dir
structure with some suitable plist files sorts this out?
Cool - you're right! When I got your reply, I coped the executable
(as per my previous message) into...
LookNoNib.app/Contents/MacOS/
...and it worked like a charm! You don't actually need any plists -
just the executable. Shows up in the Dock too.
I chased the AppKit NIB "defrosting" code as far as an undocumented
class called NSIBObjectData where it started getting complicated.
Presumably the code inside there looks for an application bundle and
this is the decider on whether or not to treat the program as a GUI
app. I guess without the bundle NSIBObjectData figures the app is a
command-line tool. Intruiging!
However, it seems you know much more about this than me...
Wouldn't be so sure about that! :-)
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden