• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unsigned long long + id = ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unsigned long long + id = ???


  • Subject: Re: unsigned long long + id = ???
  • From: Claudio Procida <email@hidden>
  • Date: Fri, 9 Feb 2007 23:30:08 +0100

Oops, I spoke a little too quickly there. Didn't realize your method
is supposed to return a 64-bit integer.

The critical bit, though, is that there are a lot of other objects
with a method -(int)size, which is what's assumed you mean if you
call [item size] without an explicit cast. The same method is being
called in both cases, but the compiler can't decide what return type
to use at runtime; it has to decide at compile time. And, unlike most
integer types, 32-bit and 64-bit integers are fundamentally
different: the details depend on your target ABI, but it'll suffice
to say that, unless you're compiling code for a 64-bit system (which
you can't do for AppKit yet), the generated code has to do some
different things to use a 64-bit return value than it would for a 32-
bit one.

I'm afraid I stumbled in one of those emerging limitations that force one to understand the underlying Cocoa runtime.
Thanks,
--
Claudio Procida
Emeraldion Lodge
http://www.emeraldion.it



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: unsigned long long + id = ???
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: No double click event available to an NSView?
  • Next by Date: Re: iTunes-like behaviour of NSButton with NSAlternateKeyMask
  • Previous by thread: Re: unsigned long long + id = ???
  • Next by thread: Re: unsigned long long + id = ???
  • Index(es):
    • Date
    • Thread