Re: Cannot get toolbar to appear in window
Re: Cannot get toolbar to appear in window
- Subject: Re: Cannot get toolbar to appear in window
- From: "I. Savant" <email@hidden>
- Date: Thu, 26 Apr 2007 14:54:11 -0400
On 4/26/07, email@hidden <email@hidden> wrote:
So still not sure why it is failing.
You seem to have missed the hints, so I'll spell it out for you:
[NSApp mainWindow] may be returning nil, and if so, you're sending
your -setToolbar: message to nil, which of course does absolutely
nothing.
The easiest thing for you to do is to add an outlet to your app
delegate (say "myWindow" or something like that), connect it to your
window, then: [myWindow setToolbar:...].
--
I.S.
_______________________________________________
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