|
From: | Fred Kiefer |
Subject: | 64bit changes to gui |
Date: | Sun, 17 Feb 2013 12:33:46 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 |
[aDecoder decodeValueOfObjCType: @encode(int) at: &_tag];Now _tag no longer is an int, is now is an NSInteger. Will that code still work? Should we change it to @encode(NSInteger)? (I think that is was base did) But that will be something different depending on the machine the code runs on? Is the coding mechanism able to handle that? And will this work for CGFloat as well? And what about old archives, e.g. Gorm files?
For the last batches of changes I no longer changed the types of the instance variables. That is a valid workaround, but only delays the decision what to do. Using local variables of the old type for coding/decoding would also work, but again looks wrong to me.
Fred
[Prev in Thread] | Current Thread | [Next in Thread] |