Re: Loading a .nib?
Re: Loading a .nib?
- Subject: Re: Loading a .nib?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 3 May 2008 13:01:00 +0200
Am 03.05.2008 um 05:58 schrieb Michael Ash:
ObjC gets set up simply by linking to it, so that happens without any
intervention. Foundation can be used with no additional setup as well.
AppKit requires that you initialize it by calling NSApplicationLoad()
before using it for anything else. Fortunately the call can be made
multiple times without harm, so you don't have to worry about anyone
else doing it too.
One more thing to note: If you want to use NSImage, make sure you've
created a Cocoa window once. [[[NSWindow alloc] init...] release] is
enough. That's probably fixed in Leopard, but I haven't checked yet...
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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