Hello,
I am not sure if this problem has already been submitted but how do I define
two APIs, one that is supported from Leopard down and
another that is only supported in Snow Leopard if I only have one binary for
all OSes?
Below is a snippet of my code
// below should be performed if the OS is Snow Leopard
[panel setDirectoryURL: @"/Users/whatever/Pictures/"];
[panel setNameFieldStringValue:@"Untitled"];
[panel beginSheetModalForWindow:mWindow
completionHandler:^(NSInteger returnCode) {
[panel orderOut:self];
[self didEndPathSelectorSheet: returnCode
filename: [ [panel
URL] relativePath] ];
} ];
// Otherwise below should be performed
[panel beginSheetForDirectory: @"/Users/whatever/Pictures/"
file: @"Untitled"
modalForWindow: mWindow
modalDelegate: self
didEndSelector:
@selector(sheedDidEnd:returnCode:contextInfo:)
contextInfo: nil];
I tried using the #if conditionals e.g. #if MAC_OS_X_VERSION_MAX_ALLOWED ......
but my application crashes. It will successfully build on compile time but
crashes during runtime
New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
_______________________________________________
Cocoa-dev mailing list ([email protected])
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/archive%40mail-archive.com
This email sent to [email protected]