• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Minimal cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: alloc init thread safe?
  • Next by Date: Distributed object and run loops I didn't start
  • Previous by thread: RE: Minimal cocoa application
  • Next by thread: NSTableHeaderCell overlaps when printing
  • Index(es):
    • Date
    • Thread