FROM : Julio Cesar Silva dos Santos
DATE : Tue Aug 01 22:50:58 2006
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_removed>
Blogjective-C
http://www.jcs.santos.nom.br/wp
FetchYourLyrics
http://www.jcs.santos.nom.br/fyl/fyl.html
DATE : Tue Aug 01 22:50:58 2006
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_removed>
Blogjective-C
http://www.jcs.santos.nom.br/wp
FetchYourLyrics
http://www.jcs.santos.nom.br/fyl/fyl.html
| Related mails | Author | Date |
|---|---|---|
| Julio Cesar Silva… | Aug 1, 22:50 | |
| Seth Willits | Aug 1, 23:24 | |
| Julio Cesar Silva… | Aug 1, 23:55 |






Cocoa mail archive

