• 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: FastEnumeration for TWO kinds of objects in class.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FastEnumeration for TWO kinds of objects in class.


  • Subject: Re: FastEnumeration for TWO kinds of objects in class.
  • From: Christiaan Hofman <email@hidden>
  • Date: Wed, 3 Nov 2010 17:02:35 +0100

On Nov 3, 2010, at 16:09, Sherm Pendley wrote:

> On Wed, Nov 3, 2010 at 8:58 AM, Ruslan Zasukhin
> <email@hidden> wrote:
>>
>> I wonder if this is possible?
>>
>> Let we have class Vdatabase, which have few kinds of sub-elements
>>    Tables
>>    Links
>>    Indexes
>>    Triggers
>>
>> We was able make FastEnumeration for Tables.
>> But we need more ?
>>
>> Is it possible?
>>
>>    for( Vtable pTable in db )
>>
>> And
>>
>>    for( VLink pLink in db )
>>
>> And so on?
>
> That *should* work - what problems are you having that lead you to
> think it might not?
>
> sherm--

Not really. These two statements will do *exactly* the same thing. In Obj-C the typing for objects does not matter for compilation, it only affects compile time *checking* (this is not C++). This also means that one of these would be lying about the class. Apart from that, strong typing requires the *.

Of course you should know all that if you'd read a minimum of introduction to Obj-C.

And of course, as was said, this is the wrong list.

Christiaan

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: FastEnumeration for TWO kinds of objects in class.
      • From: Ruslan Zasukhin <email@hidden>
    • Re: FastEnumeration for TWO kinds of objects in class.
      • From: Sherm Pendley <email@hidden>
    • Re: FastEnumeration for TWO kinds of objects in class.
      • From: Ruslan Zasukhin <email@hidden>
References: 
 >FastEnumeration for TWO kinds of objects in class. (From: Ruslan Zasukhin <email@hidden>)
 >Re: FastEnumeration for TWO kinds of objects in class. (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Help DTrace gurus: suggestions for capturing a mis-allocated NSData object on a customer's system
  • Next by Date: Re: FastEnumeration for TWO kinds of objects in class.
  • Previous by thread: Re: FastEnumeration for TWO kinds of objects in class.
  • Next by thread: Re: FastEnumeration for TWO kinds of objects in class.
  • Index(es):
    • Date
    • Thread