• 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: Declarations near usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Declarations near usage


  • Subject: Re: Declarations near usage
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 17 Oct 2002 12:37:41 +0200

On Thursday, October 17, 2002, at 05:49 , Phillip Hutchings wrote:

Yeah it is and mostly I am quite contented with that, but man, I do lack the possibility to do

for (NSEnumerator *en=[array objectEnumerator];id o=[en nextObject];) [o whatever];

;)))

Considering that this technique is used at least 5 times in my application, I'm pretty sure you can. I've been doing Java before, but now that I'm using ObjC/Cocoa I just did it without thinking. It works fine on 10.2 dev tools.

Unless I missed something obvious you can't. So far as I understand C99, you can declare the enumerator this way, but you can't declare the 'o'.

Besides, since I do need WO4.5.1, and since Apple decided not to support them anymore, I am stuck with 10.1 :((((
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
References: 
 >Re: Declarations near usage (From: Phillip Hutchings <email@hidden>)

  • Prev by Date: Guidance needed: IrDa
  • Next by Date: Re: empty string, or: totally clearing the NSTextStorage
  • Previous by thread: Re: Declarations near usage
  • Next by thread: Re: Declarations near usage
  • Index(es):
    • Date
    • Thread