Re: Integer as key in NSMutableDictionary

2009-05-05 Thread Weydson Lima
Wow, I'm learning a lot from this list. Thanks all for everything, now my code is finally working as I had wanted. :) Weydson ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: how to combine addObject in mutablearray with Object instantiation?

2009-05-04 Thread Weydson Lima
Oops, wrong list :) On Tue, May 5, 2009 at 1:05 AM, Weydson Lima wrote: > Sorry for jumping in, but I have a question in the following line: > >> For other objects, you'll have to use a convenience method like: >> >>[myArray addObject:[NSNumber numberWithI

Re: how to combine addObject in mutablearray with Object instantiation?

2009-05-04 Thread Weydson Lima
Sorry for jumping in, but I have a question in the following line: > For other objects, you'll have to use a convenience method like: > >[myArray addObject:[NSNumber numberWithInt:7]]; > When you add a NSNumber object, how can you quickly reference back to it? Let's say you want to find t

Re: Integer as key in NSMutableDictionary

2009-05-04 Thread Weydson Lima
4 PM, Jean-Daniel Dupas wrote: > > Le 4 mai 09 à 22:58, Alexander Heinz a écrit : > > On May 4, 2009, at 3:22 AM, Weydson Lima wrote: >> >>> I know that these methods are expecting pointers as parameters and I am >>> passing a scalar. So, what's the best way to

Integer as key in NSMutableDictionary

2009-05-04 Thread Weydson Lima
Hi, Assume that: NSMutableDictionary *result = [[NSMutableDictionary alloc] initWithCapacity:10]; NSInteger ID; And I add objects to the dictionary: [result setObject:[NSArray arrayWithObjects: {... objects ...}

Loading a view controller from a tab bar controller

2009-04-02 Thread Weydson Lima
Hello there, Another noob question that I couldn't find a solution yet. In my mainwindow xib file, I have a tab bar controller which has two different view controllers. However, when I create those view controllers, how can I set the view property to a view controller instead of just a v

Re: Two view controllers in one set of files (Noob question)

2009-03-26 Thread Weydson Lima
Thanks for the replies. I looked around the net and found some tutorials on how to create multiple views in a single nib file. I was just confused on how to do that. But you are right, it's better to have unique classes files for each views. Weydson On Mar 25, 2009, at 11:31 AM, We

Two view controllers in one set of files (Noob question)

2009-03-25 Thread Weydson Lima
Hi there, I want to set up two view controllers but I don't want to create a XIB and .m/.h for each controller. Is it possible to use a single set of files to do so? As I was reading the book by Mark and LaMarche, it looks that their approach is to create a pair of those files for each Vi

Windows vs View

2009-02-18 Thread Weydson Lima
Hi there, This is my first message here and I am already starting with a very newbie question. I have a broad understanding what a view is - a button, a label, etc... are views, right? But when I look at some sample codes from Apple, the application doesn't have a "main" window.. instead, it has