• 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
NSWindowController and custom windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindowController and custom windows


  • Subject: NSWindowController and custom windows
  • From: Julio Cesar Silva dos Santos <email@hidden>
  • Date: Tue, 1 Aug 2006 17:50:58 -0300

Hi, I am having a problem with a custom window I am using in a project that uses a subclassed NSWindowController. This custom NSWindowController automatically adds an NSWindow called 'window' in IB and I can't change the type of the outlet. My problem is that the 'window' is connected to a custom subclassed NSWindow so every time I try to use a method of the subclass I receive a warning saying:

'NSWindow' may not respond to '-myMethodInMyCustomWindow'

I am accessing this method like this:

[[self window] myMethodInMyCustomWindow];

The application does not crash but I would like to get rid of this message and I thought about casting [self window] to MyCustomWindow but didn't work. Maybe I am taking the wrong approach or something like this...

Any help would be appreciated, thanks.




Julio Cesar Silva dos Santos email@hidden Blogjective-C http://www.jcs.santos.nom.br/wp FetchYourLyrics http://www.jcs.santos.nom.br/fyl/fyl.html


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSWindowController and custom windows
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Tracking the mouse in a cell in a NSTableView
  • Next by Date: How to tell when your row is selected?
  • Previous by thread: Re: Tracking the mouse in a cell in a NSTableView
  • Next by thread: Re: NSWindowController and custom windows
  • Index(es):
    • Date
    • Thread