Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot get toolbar to appear in window



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Cannot get toolbar to appear in window (From: <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.