A quick one: Passing a reference/pointer to NSString

2008-07-22 Thread Jeff Brown
Hi Guys What do I need to do in the following code to get theString to take the value I'm giving it in foo i.e. Hi there? - (void) aMethod { NSString* theString = @; [self foo:theString]; } - (NSString*) foo:(NSString*)aString { NSString* stringB = @Hi there; aString = stringB;

Re: A quick one: Passing a reference/pointer to NSString

2008-07-22 Thread Jeff Brown
Sorry - it should have been: - (void) aMethod { NSString* string1 = @; NSString* string2 = @; string1 = [self foo:string2]; } - (NSString*) foo:(NSString*)aString { NSString* stringA = @Hi there; NSString* stringB = @Everyone; aString = stringB; return stringA; } I

Re: A quick one: Passing a reference/pointer to NSString

2008-07-22 Thread Jeff Brown
Thanks guys for all the advice. Much appreciated. Jeff Start at the new Yahoo!7 for a better online experience. www.yahoo7.com.au ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Questions about Core Data and SQLite

2008-07-15 Thread Jeff Brown
Thanks guys for all this info. Also can anyone point me to a good book or website where I can learn about and how to incorporate Core Data into my existing Cocoa App. I've found mac documentation isn't the easiest to learn from. Cheers Jeff Start at the new Yahoo!7 for a better online

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Jeff Brown
Hi Jon Just an aside - does Hillegass, Third Edition teach you Core Data? The blurb on Amazon says it does but when I looked at the index online it didn't mention Core Data. Jeff Start at the new Yahoo!7 for a better online experience. www.yahoo7.com.au

Questions about Core Data and SQLite

2008-07-14 Thread Jeff Brown
Hi Guys I've got a cocoa app that is installed as a client on several machines and uses MySql as the database. Is there any way I can incorporate Core Data into the app so that I can do away with using MySql? i.e. log into the app on one machine (using it's SQLite database) from the same app

Re: Stopping actions mid stream

2008-07-07 Thread Jeff Brown
Thanks everyone. I ended up just disabling the option in the end. Cheers Jeff Thanks Andy and Jean-Daniel. Peter On 07/07/2008, at 3:34 AM, Andy Lee wrote: Yes: http://ignorethecode.net/blog/2008/07/01/disabling-inactive-menu-items/ (by way of DaringFireball) --Andy On Jul 6, 2008, at

Stopping actions mid stream

2008-07-06 Thread Jeff Brown
Hi Guys I've set up matrix with 2 radio buttons (1 and 2) with a delegate method that gets run when the matrix gets clicked. Lets say radio button 1 is highlighted and someone clicks on radio button 2. The delegate method has some code that checks whether the radio buttons are allowed to be