Re: Having trouble just displaying a window
Re: Having trouble just displaying a window
- Subject: Re: Having trouble just displaying a window
- From: Gordon Apple <email@hidden>
- Date: Thu, 15 Nov 2007 10:52:57 -0600
This is the same issue I posted about a couple of weeks ago. Like
myself, he just followed what was in the Sketch sample code and found out it
didn't work when using a .xib instead of a the original .nib with the
earlier IB. Something gets lost in the translation. Using the window
controller for the file's owner instead of the Application fixes it. That's
also why the newer Sketch .xib includes an explicit controller object solely
for the purpose of getting a direct connection to the Application.
> On Nov 15, 2007, at 4:44 AM, Rick Mann wrote:
>
>> On Nov 15, 2007, at 12:41 AM, Sherm Pendley wrote:
>>
>>> In IB, change the "Window's Owner" class to NSWindowController.
>>> Then connect the owner's "window" outlet to the window.
>>
>> I take it you mean "File's Owner", not "Window's Owner," right?
>
> Right, sorry about that. I posted before coffee. :-(
>
>> At least, that's what I have in my file. Anyway, doing that fixed it.
>
> I'm glad my under-caffeinated response wasn't an obstacle. :-)
>
> sherm--
>
> Web Hosting by West Virginians, for West Virginians: http://wv-www.net
> Cocoa programming in Perl: http://camelbones.sourceforge.net
>
>
_______________________________________________
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