• 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: disabling nsdatepicker in nib if loaded on panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >disabling nsdatepicker in nib if loaded on panther (From: Mitchell Livingston <email@hidden>)

  • Prev by Date: RE: Probem with finding out Transformed objects Points.
  • Next by Date: Re: disabling nsdatepicker in nib if loaded on panther
  • Previous by thread: disabling nsdatepicker in nib if loaded on panther
  • Next by thread: Re: disabling nsdatepicker in nib if loaded on panther
  • Index(es):
    • Date
    • Thread