Re: Tiger development Panther deployment
Re: Tiger development Panther deployment
- Subject: Re: Tiger development Panther deployment
- From: Bob Ippolito <email@hidden>
- Date: Sun, 29 May 2005 16:50:55 -0700
On May 29, 2005, at 3:53 PM, Frédéric BLANC wrote:
I've got a simpler example to share; something that might better
illustrate my need:
When run on Tiger systems, my app now throws the following warning
in Console:
<<
*** WARNING: Method setResizable in class NSTableView is deprecated on
10.4 and later. It should not be used in new applications. Use
setResizingMask: instead.
I'd naturally like to keep the setResizable() code for Panther users,
and use the new setResizingMask() one for Tiger-based systems… (And of
course, I'd like to avoid to distribute 2 apps: one for Panther, and
one for Tiger.)
I don't know about Java, but everywhere else you would typically do:
if ([obj respondsToSelector:@"setResizingMask:"]) {
// do the new thing
} else {
// do the old thing
}
or possibly checking at some point earlier on with this:
[NSTableView instancesRespondToSelector:@"setResizingMask:"]
-bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden