Re: disabling nsdatepicker in nib if loaded on panther
Re: disabling nsdatepicker in nib if loaded on panther
- Subject: Re: disabling nsdatepicker in nib if loaded on panther
- From: Jeremy Dronfield <email@hidden>
- Date: Wed, 1 Nov 2006 16:00:31 +0000
On 1 Nov 2006, at 2:45 pm, Mitchell Livingston wrote:
I want my app to run on 10.3 and higher, but I also want to use an
nsdatepicker. Is there a way to have the date picker in the nib but
only show it when running on a system that supports it?
The way I handle this sort of situation is to put a placeholder
NSView of the right size in the window in the nib. Then at runtime,
according to OS version, I create the appropriate control
programmatically (using the placeholder view's frame as a reference)
and swap it for the plain view. It helps, of course, if you've got a
substitute view (or nib) for those running an earlier OS version.
Otherwise you'll be left with a blank space.
-Jeremy
_______________________________________________
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