• 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: Distributed Objects: problem with bycopy not working as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Objects: problem with bycopy not working as expected


  • Subject: Re: Distributed Objects: problem with bycopy not working as expected
  • From: Grigory Entin <email@hidden>
  • Date: Tue, 25 Jan 2005 02:00:48 +0300

Hi Charles,

Probably the problem is that "bycopy" does nothing outside a *formal
protocol*. You just have to declare that formal protocol so that the
ensure that passed object conforms to the protocol.

Qutoing "The Objective C Programming language":

>>
So that programmers can give explicit instructions about the intent of
a remote message, Objective-C defines six type qualifiers that can be
used when declaring methods inside a formal protocol:

oneway
in
out
inout
bycopy
byref

These modifiers are restricted to formal protocols; they can’t be used
inside class and category declarations. However, if a class or
category adopts a protocol, its implementation of the protocol methods
can use the same modifiers that are used to declare the methods.
>>

Regards,
Grigory
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
  • Next by Date: Database
  • Previous by thread: Re: Distributed Objects: problem with bycopy not working as expected
  • Next by thread: Table Control
  • Index(es):
    • Date
    • Thread