• 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: A bit confused
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bit confused


  • Subject: Re: A bit confused
  • From: Michael Curtis <email@hidden>
  • Date: Fri, 18 Jun 2004 08:30:56 +0100

Hi,

Thanks for that suggestion. Joar also gave me that advice. I have only
ever programmed in BASIC and so an NSArray was my first stop. I am very
new to this and so know what frameworks are out there and which to use
is one of my problems. I have the Aaron Hillegass book rev2 (Cocoa
Programming For Mac OS X). I have only got as far as arrays and though
it was time I wrote something.

Thanks for the input.

Best wishes

Michael

On 17 Jun 2004, at 20:19, Prachi Gauriar wrote:

>
> On Jun 17, 2004, at 4:52 AM, Michael Curtis wrote:
>
>> Hi,
>>
>> I am sorry about this newbie question, but I am getting a bit
>> confused. I am making an array and filling it with random numbers.
>> This
>> works fine. I then want to check that array to make sure that the
>> number added is not already in there.
>>
>> I am having trouble return the number out of the array. This is the
>> error I get.
>>
>
> Although this isn't strictly related to your problem, why are you
> using an array instead of a set? I'm assuming by array you mean an
> NSArray. So why not use an NSSet instead? It doesn't allow for
> duplicates, and if they're random numbers, I'm not sure whether the
> ordering is important or not for your case. Anyway, it's something to
> think about if you don't really care about the order.
>
> -Prachi
>
>
"Not only have you managed to sink every aircraft carrier and
battleship you have ever sailed on, but now you've gone and knackered a
gravy boat"

Del Boy speaking to Uncle Albert - Only Fools And Horses 1996

Michael Curtis
email@hidden

Home Page: http://www.curtis2310.demon.co.uk/

Reed Cricket Club Home Page http://www.reedcc.co.uk
_______________________________________________
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: 
 >A bit confused (From: Michael Curtis <email@hidden>)
 >Re: A bit confused (From: Prachi Gauriar <email@hidden>)

  • Prev by Date: Re: Required an Example
  • Next by Date: Open ichat from addressbook...
  • Previous by thread: Re: A bit confused
  • Next by thread: Job Opportunity Hamburg
  • Index(es):
    • Date
    • Thread