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: Having trouble just displaying a window




On Nov 15, 2007, at 8:52 AM, Gordon Apple wrote:

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.

Oh, I guess I should clarify. The File's Owner had already been set to NSWindowController. What I had failed to do was to set it's window outlet to point to my window object in IB. That was my missing link (literally).


--
Rick

_______________________________________________

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

This email sent to email@hidden
References: 
 >Re: Having trouble just displaying a window (From: Gordon Apple <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.