Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-26 Thread Georg Seifert
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 i

Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Jonathan Hess
On Aug 25, 2008, at 12:22 PM, Georg Seifert wrote: Hello, I have a problem: - (id)initWithContentRect:(NSRect)contentRect styleMask: (unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer: (BOOL)deferCreation { BOOL useTextured = YES; if([self respondsToSelecto

Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Shawn Erickson
On Mon, Aug 25, 2008 at 10:17 PM, Georg Seifert <[EMAIL PROTECTED]> wrote: > Hi Matt, > > Your code does the same than mine. The code in question is called only on > Leopard. But the problem occurs only there. Is seem that if you have > compiled against 10.4 you cannot call functions from the 10.5

Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Georg Seifert
Hi Matt, Your code does the same than mine. The code in question is called only on Leopard. But the problem occurs only there. Is seem that if you have compiled against 10.4 you cannot call functions from the 10.5 SDK Is there some compatibility build setting or something else? Georg

Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Shawn Erickson
On Mon, Aug 25, 2008 at 3:14 PM, Matt Ball <[EMAIL PROTECTED]> wrote: > Hi Georg, > > How about doing something like this? (typed in Mail, so check for > typos). Using the preprocessor macros should also be a *bit* more > efficient, since it won't be doing any checks at runtime. > > { > #if MAC_OS_

Re: call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Matt Ball
Hi Georg, How about doing something like this? (typed in Mail, so check for typos). Using the preprocessor macros should also be a *bit* more efficient, since it won't be doing any checks at runtime. { #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 windowStyle ^= NSTexturedBackgroundWi

call "setContentBorderThickness:forEdge:" in Tiger

2008-08-25 Thread Georg Seifert
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:)]) {