Re: Interface Builder changes IDs in XIB files on open/save
Re: Interface Builder changes IDs in XIB files on open/save
- Subject: Re: Interface Builder changes IDs in XIB files on open/save
- From: Andy Lee <email@hidden>
- Date: Sat, 21 Jun 2008 09:24:44 -0400
On Jun 21, 2008, at 9:13 AM, lbland wrote:
On Jun 21, 2008, at 8:56 AM, Sebastian Nowicki wrote:
Seems to help when you just open and immediately close. If you
open, save and close, it still changes all the reference IDs. I
don't see why Interface Builder would ever have to change the
reference ID unless the object itself changed, and even then it
probably shouldn't change it. I guess I'll fill out the
"enhancement" (though I really think it's a bug :P).
hi-
I haven't checked into the internals, but I would think that the
reference IDs are part of the store and not part of the runtime
image of the object graph. So that they are not preserved after
opening and need to be rebuilt upon save.
I suspect the IDs are memory addresses. This would be easiest for
implementing the object serialization code -- think how you'd check
for multiple references to the same object while you're serializing.
Objects don't have any other natural unique id.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden