FROM : Nick Zitzmann
DATE : Thu Dec 02 21:17:49 2004
On Dec 2, 2004, at 1:03 PM, Dennis Falling wrote:
> Is there any way to design an application to use two different nibs
> based on the version?
Yes, if the nib is not the main nib file. You could do something like
this, for example:
if (NSAppKitVersionNumber <= floor(NSAppKitVersionNumber10_2))
{
[NSBundle loadNibNamed:@"JaguarAndEarlier" owner:self];
}
else
{
[NSBundle loadNibNamed:@"PantherAndLater" owner:self];
}
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Thu Dec 02 21:17:49 2004
On Dec 2, 2004, at 1:03 PM, Dennis Falling wrote:
> Is there any way to design an application to use two different nibs
> based on the version?
Yes, if the nib is not the main nib file. You could do something like
this, for example:
if (NSAppKitVersionNumber <= floor(NSAppKitVersionNumber10_2))
{
[NSBundle loadNibNamed:@"JaguarAndEarlier" owner:self];
}
else
{
[NSBundle loadNibNamed:@"PantherAndLater" owner:self];
}
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Dennis Falling | Nov 30, 19:48 | |
| John Stiles | Nov 30, 20:06 | |
| j o a r | Nov 30, 20:16 | |
| Dennis Falling | Dec 1, 03:33 | |
| Dennis Falling | Dec 1, 03:33 | |
| Dennis Falling | Dec 1, 03:41 | |
| Evan Schoenberg | Dec 1, 04:18 | |
| j o a r | Dec 1, 08:50 | |
| Dennis Falling | Dec 1, 19:24 | |
| j o a r | Dec 1, 20:41 | |
| Dennis Falling | Dec 2, 01:39 | |
| Evan Schoenberg | Dec 2, 02:44 | |
| Nick Zitzmann | Dec 2, 03:08 | |
| M. Uli Kusterer | Dec 2, 03:26 | |
| Dennis Falling | Dec 2, 10:42 | |
| Dennis Falling | Dec 2, 10:53 | |
| j o a r | Dec 2, 11:01 | |
| Dennis Falling | Dec 2, 19:57 | |
| Nick Zitzmann | Dec 2, 20:24 | |
| Dennis Falling | Dec 2, 21:03 | |
| Nick Zitzmann | Dec 2, 21:17 | |
| m | Dec 2, 21:45 |






Cocoa mail archive

