• 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: Getting pointer to NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting pointer to NSWindowController


  • Subject: Re: Getting pointer to NSWindowController
  • From: Nirias <email@hidden>
  • Date: Wed, 8 Oct 2008 08:31:02 -0700

That was it.  Thanks.

On Tue, Oct 7, 2008 at 11:41 PM, Graham Cox <email@hidden> wrote:

>
> On 8 Oct 2008, at 4:00 pm, Nirias wrote:
>
>  It seems I must be doing something wrong since the NSWindow class have a
>> property for NSWIndowController isnt documented to  always return NULL.
>>  And
>> it is hard to believe that the architects of cocoa intended to require
>> that
>> every bit of shared data be defined as global.
>>
>
>
> Your approach looks basically right to me.
>
> If [window windowController] is returning nil it may suggest that you
> haven't hooked everything together properly in IB. Have you connected the
> 'window' outlet of the controller to the window object? Forgetting to do
> that is common and very often things almost work anyway, so it might not
> leap out as an obvious problem.
>
>>
>>
>
>
> hth, Graham
>
_______________________________________________

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

References: 
 >Getting pointer to NSWindowController (From: Nirias <email@hidden>)
 >Re: Getting pointer to NSWindowController (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Optimized pixel manipulation
  • Next by Date: Re: Optimized pixel manipulation
  • Previous by thread: Re: Getting pointer to NSWindowController
  • Next by thread: CALayer bounds with ResizeAspect mask?
  • Index(es):
    • Date
    • Thread