NSWindowController and custom windows
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