• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: call "setContentBorderThickness:forEdge:" in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call "setContentBorderThickness:forEdge:" in Tiger


  • Subject: Re: call "setContentBorderThickness:forEdge:" in Tiger
  • From: Georg Seifert <email@hidden>
  • Date: Tue, 26 Aug 2008 08:22:05 +0200

Hello Johan,

this was the mystery: Why it crashes with "NSMinXEdge" when I only use "NSMinYEdge". But the comment from Shawn helped me find the right answer.

I have to set the "Base SDK" to 10.5 and the "deployment SDK" to 10.4. This, at least, solved the crash on Leopard. I cannot test it on Tiger, but it shall work.

Many Thanks for all your help,
Georg

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'

Your error message says "NSMinXEdge", but your code says "NSMinYEdge" Is that just a transcription error in mail? I think fixing that will lead you to your answer. Also, are you sure xoring is what you want to do? With XOR, you're unconditionally toggling the NSTexturedBackgroundWindowMask bit. Perhaps you mean to do that though.


Good Luck -
Jon Hess



(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:
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


References: 
 >call "setContentBorderThickness:forEdge:" in Tiger (From: Georg Seifert <email@hidden>)
 >Re: call "setContentBorderThickness:forEdge:" in Tiger (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: CIRotatingCubeTransition
  • Next by Date: NSAppleScript shies away from porcupines
  • Previous by thread: Re: call "setContentBorderThickness:forEdge:" in Tiger
  • Next by thread: Help converting NSFilePosixPermissions to Octal representation
  • Index(es):
    • Date
    • Thread