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
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UgQxUdiMEb9J23NRA80zy49oEmDBAYtnzhIbCgaY1SGhysy9EjP3BFtd4fUEUy3OBDCoRt04aSZVPwJ5ju73Y6WpEiVVtJi2WdDPBkT80u3SVXgZkhT37s/FsP5bHIjy+Wq8yADJekAWCTuNITgdQHMWXiO85H1EvtTfjMvp7ys=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=n6OkOjd3eFf2la7Kc+LTqXnp4TKjwrtswTZL7ofugwUFVfwTXt/ULDI3UfMgS4zWqjNDUdWsY4fpXqTXi+wbKdYbob8fwv8kWEar4btzRAjhklckEe0C2YOboIwxeAvRP6RexKU3LlAOXOsLy6x+9ZhpUE3YurjUGNl91CoEGuU=
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
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.