• 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
A Short DO Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A Short DO Problem


  • Subject: A Short DO Problem
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 14 Aug 2002 22:31:11 +0200

C function probably always return an int, even if the return value is actually shorter.
Objectiv-C methods probably do the same.

But [ aLocalObject returnUnsignedShort0xbeef ] returns 0x0000beef.
Whereas [ aDistantObject returnUnsignedShort0xfffa20 ] returns 0xffffbeef.

Is it somewhere documented that DistandObjects cannot return things which are not ints?
What about returning structs? What about returning char *?

I have read the documentation several times, but could not find anything.
Any pointers would be very welcome.

Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: A Short DO Problem
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: [TRTFM]ICMP ping using Obj-C
  • Next by Date: re-entering threats
  • Previous by thread: Re: NSToolbarItem actions and modifier keys
  • Next by thread: Re: A Short DO Problem
  • Index(es):
    • Date
    • Thread