• 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: 3 obj-c/cocoa beginner q's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3 obj-c/cocoa beginner q's


  • Subject: Re: 3 obj-c/cocoa beginner q's
  • From: Ben Dougall <email@hidden>
  • Date: Tue, 25 Mar 2003 15:59:38 +0000

Most optimum I can think of (beware of C++isms though). Unless you really need to traverse upwards.

for(int i([myArray count] - 1); i >= 0; --i)
{
...
}

oh yeah that's good - doesn't even use the extra variable. thanks.




GNUStep is an open source implementation of the NextStep frameworks, which evolved eventually into Cocoa. They probably have parted ways in a number of issues since it started, but it's a good place to go for easy porting of (relatively simple) Cocoa programs to linux, and for seeing actual code for implementing Appkit and Foundation

well i certainly wasn't really aware of that - NSThings being useable on other platforms. you're obviously going to have to work quite hard for that though right? - to port that is. you can't just press a button? :) no. silly question. so, linux, what about windows?
_______________________________________________
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: 3 obj-c/cocoa beginner q's
      • From: Raymond Fischer <email@hidden>
    • Re: 3 obj-c/cocoa beginner q's
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: 3 obj-c/cocoa beginner q's (From: Oscar Morales Vivó <email@hidden>)

  • Prev by Date: Re: Programmatically scrolling
  • Next by Date: Printing NSTableView from NSDocument
  • Previous by thread: Re: 3 obj-c/cocoa beginner q's
  • Next by thread: Re: 3 obj-c/cocoa beginner q's
  • Index(es):
    • Date
    • Thread