Sanity Check
Sanity Check
- Subject: Sanity Check
- From: email@hidden
- Date: Wed, 7 Jul 2010 14:07:08 -0600
Does this code make sense? Where
[[ SewAndColorController alloc] initWithWindowNibName:@"nibName"]
is called from another view action?
@interface SewAndColorController : NSWindowController {
NSPanel *m_panel;
}
@end
#import "SewAndColorController.h"
@implementation SewAndColorController
- (id) initWithWindowNibName:(NSString*)windowNibName
{
self = [super initWithWindowNibName:windowNibName];
if (self != nil)
{
[self retain];
m_panel = [self window];
[m_panel setDelegate:self];
[m_panel makeKeyAndOrderFront:self];
}
return self;
}
@end
_______________________________________________
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