Problem with NSWindowController subclass
Problem with NSWindowController subclass
- Subject: Problem with NSWindowController subclass
- From: "D.K. Johnston" <email@hidden>
- Date: Fri, 23 Jun 2006 11:51:27 -0700
I made a subclass of NSWindowController. It looks like this:
@interface TextDisplayController : NSWindowController
{
IBOutlet id text;
IBOutlet id citation;
IBOutlet id title;
}
- (void)setText:(NSString *)textString;
- (void)setCitation:(NSString *)citationString;
- (void)setWorkTitle:(NSString *)titleString;
@end
I call the 'set' methods in this order:
setWorkTitle:
setCitation:
setText:
and then call the showWindow: method. To my surprise, the
setCitation: and setText: methods are called again (in that order),
but not the other. Of course, none of these should be called twice. I
can't figure out why this is happening.
_______________________________________________
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