Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

call "setContentBorderThickness:forEdge:" in Tiger



Hello,

 I have a problem:

- (id)initWithContentRect:(NSRect)contentRect styleMask: (unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer: (BOOL)deferCreation
{
BOOL useTextured = YES;
if([self respondsToSelector:@selector(setContentBorderThickness:forEdge:)]) {
windowStyle ^= NSTexturedBackgroundWindowMask;
useTextured = NO;
}

self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
if(!useTextured)
{
[self setContentBorderThickness:27.0 forEdge: NSMinYEdge];
}
return self;
}


if I compile against the 10.5 SDK everything work fine. But if I use the 10.4 SDK it crashes:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'setContentBorderThickness:forEdge: may not be called with NSMinXEdge'


(build and tested on Leopard, on Powerbook, latest OS and xCode)

Can someone help with this?

Thanks in advance.
Georg
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.