Re: Cocoa-dev Digest, Vol 4, Issue 795
Re: Cocoa-dev Digest, Vol 4, Issue 795
- Subject: Re: Cocoa-dev Digest, Vol 4, Issue 795
- From: Aaron Wallis <email@hidden>
- Date: Wed, 15 Aug 2007 12:21:24 +1000
You need to subclass it like this:
- ( id ) initWithContentRect:( NSRect )contentRect styleMask:
( unsigned int )aStyle backing:( NSBackingStoreType )bufferingType
defer:( BOOL )flag
{
// make the window controls go bye bye
NSWindow * result = [super initWithContentRect:contentRect
styleMask: aStyle backing: bufferingType defer:NO];
return result;
}
On 15/08/2007, at 8:16 PM, Geforce8800 wrote:
Hi everyone. I am confused about a problem of extending the NSWindow
class.
First, I declare a interface like this:
@interface newWindow: NSWindow
{}
@end
then the implement file is like this:
-(id) init
{
self = [super init];
if(self != nil)
{
printf("Hello World\n");
}
return self;
}
however, when I set up a window to newWindow class, and run the
application , there is no Hello World show up as I excepted. Can
anyone tell me what is wrong?
Thank you in advanced.
_______________________________________________
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
_______________________________________________
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