• 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: Cannot get toolbar to appear in window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Cannot get toolbar to appear in window
  • Next by Date: Re: CFPropertyListWriteToStream and NSDictionary
  • Previous by thread: Re: Cannot get toolbar to appear in window
  • Next by thread: Re: Cannot get toolbar to appear in window
  • Index(es):
    • Date
    • Thread