• 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: Graham Cox <email@hidden>
  • Date: Wed, 8 Oct 2008 17:41:10 +1100


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


  • Follow-Ups:
    • Re: Getting pointer to NSWindowController
      • From: Nirias <email@hidden>
References: 
 >Getting pointer to NSWindowController (From: Nirias <email@hidden>)

  • Prev by Date: Getting pointer to NSWindowController
  • Next by Date: Re: Core Data: Copying and pasting chained entities
  • Previous by thread: Getting pointer to NSWindowController
  • Next by thread: Re: Getting pointer to NSWindowController
  • Index(es):
    • Date
    • Thread