I'm building on Snow Leopard but I want to run on Leopard too. I'm calling NSMatrix's cellFrameAtRow:column: from an NSCell, like this:
NSInteger row, col; [(CardMatrix*)[self controlView] getRow:&row column:&col ofCell:self]; NSRect myFrame = [ (CardMatrix*)[self controlView] cellFrameAtRow:row column:col]; I can see from logging that this gives the right answers on my SnowLeopard machine. For example, the NSRect of cell (0,0) is reported as {{0, 0}, {130.5, 167.25}} But on the Leopard machine it's reported as {{608, 0}, {20, 0}} I believe things really are going wrong (i.e. it isn't just the way I'm logging) because myFrame causes Bad Things to happen later on in the code on the Leopard machine. On Snow Leopard everything's fine. I have a vague feeling that all this is due to something about 64-bit, and maybe NSRect vs. CGRect, but what? Do I need to do some kind of tricky conditional compilation and cast somehow? Do I need to tweak my build settings? (I tried building 32-bit only but it made things worse.) Thx. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf AppleScript: the Definitive Guide, 2nd edition http://www.tidbits.com/matt/default.html#applescriptthings Take Control of Exploring & Customizing Snow Leopard http://tinyurl.com/kufyy8 RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html TidBITS, Mac news and reviews since 1990, http://www.tidbits.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com