• 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: [myWindowController window] returns null !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [myWindowController window] returns null !


  • Subject: Re: [myWindowController window] returns null !
  • From: Louis Demers <email@hidden>
  • Date: Wed, 23 Feb 2011 23:55:31 -0500

On 2011-02-23, at 23:50 , Stephen J. Butler wrote:

> On Wed, Feb 23, 2011 at 10:45 PM, Louis Demers <email@hidden> wrote:
>> No, in my xib, the File's Owner type is set to a custom Object which has some IBOutlet that I connect the gui elements to!
>> Then, when I call
>>
>> myWindowController = [[NSWindowController alloc] initWithWindowNibName:@"myWindowXIB" owner: someObject ];
>>
>> I pass that object along as the owner.
>>
>> Do you mean I can only set the File's Owner type to a NSWindowController class ?
>
> Ohhh, I missed that. Someone more experienced then I is going to have
> to answer. Mostly I create a subclass of NSWindowController when I
> need more outlets and make that my File's Owner.

I temporarily set the File's Owner type to a NSWindowController class and connected the window to it. Got the same null value

Thanks for the leads to investigate...


Louis Demers eng.
www.obzerv.com


_______________________________________________

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

  • Follow-Ups:
    • Re: [myWindowController window] returns null !
      • From: Kyle Sluder <email@hidden>
References: 
 >[myWindowController window] returns null ! (From: Louis Demers <email@hidden>)
 >Re: [myWindowController window] returns null ! (From: "Stephen J. Butler" <email@hidden>)
 >Re: [myWindowController window] returns null ! (From: Louis Demers <email@hidden>)
 >Re: [myWindowController window] returns null ! (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: [myWindowController window] returns null !
  • Next by Date: Re: [myWindowController window] returns null !
  • Previous by thread: Re: [myWindowController window] returns null !
  • Next by thread: Re: [myWindowController window] returns null !
  • Index(es):
    • Date
    • Thread