Re: Conditionally modifying NIBs?
Re: Conditionally modifying NIBs?
- Subject: Re: Conditionally modifying NIBs?
- From: Jonathan Hess <email@hidden>
- Date: Wed, 14 May 2008 17:20:38 -0700
On May 14, 2008, at 4:10 PM, Hamish Allan wrote:
On Wed, May 14, 2008 at 11:25 PM, Mike Fischer
<email@hidden> wrote:
(I know this can be hacked, and that while verbose it's only xml.
But I'd
want my apps building in the next Xcode (sub-)release as well.)
Sure, well, you can't eat your cake and have it ;)
I'd have thought that you could maybe try to automate "Whenever any of
the parts of nib N1 and N2 change that are identical in both nibs I
have to remember to make the changes in both."
You can also use ibtool for verification
How so?
, so I don't buy that
"extremely dangerous" stuff
Just because a tool doesn't crash reading the file, and everything
appears to work normally doesn't mean that the file is correct and
valid.
As for the original question, you can modify an IB file, to some
extent, using ibtool --import and ibtool --export. For example, you
might consider placing all of your views and objects in the XIB/NIB,
and then using these options to control the isHidden property of
various views. That won't be easy though, as it isn't an intended
usage of ibtool. I think the best option here is to make the changes
in code, and to only use on IB file.
Good Luck -
Jon Hess
, and the bit about backwards compatibility
is irrelevant.
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden