Skip navigation.
 
mlRe: Conditionally modifying NIBs?
FROM : Jonathan Hess
DATE : Thu May 15 02:20:38 2008

On May 14, 2008, at 4:10 PM, Hamish Allan wrote:

> On Wed, May 14, 2008 at 11:25 PM, Mike Fischer 
> <<email_removed>> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlConditionally modifying NIBs? Mike Fischer May 14, 19:37
mlRe: Conditionally modifying NIBs? David Wilson May 14, 20:11
mlRe: Conditionally modifying NIBs? Mike Fischer May 14, 20:32
mlRe: Conditionally modifying NIBs? Hamish Allan May 15, 00:07
mlRe: Conditionally modifying NIBs? Mike Fischer May 15, 00:25
mlRe: Conditionally modifying NIBs? Hamish Allan May 15, 01:10
mlRe: Conditionally modifying NIBs? Jonathan Hess May 15, 02:20
mlRe: Conditionally modifying NIBs? Mike Fischer May 15, 13:25
mlRe: Conditionally modifying NIBs? Mike Fischer May 15, 13:26
mlRe: Conditionally modifying NIBs? Jonathan Hess May 15, 22:36
mlRe: Conditionally modifying NIBs? Uli Kusterer May 18, 11:14
mlRe: Conditionally modifying NIBs? Mike Fischer May 18, 15:48