Re: NSMenuItem - setHidden

2008-08-23 Thread Stuart Green
So I could use this method to enable/disable the menu item rather than hide it? That may look a bit more pleasing to the user. Will give it a go. Thanks. Regards, Stuart Sent from my iPhone On 23 Aug 2008, at 02:53, Jonathan Hess <[EMAIL PROTECTED]> wrote: On Aug 22, 2008, at 6:15 PM, G

Re: NSMenuItem - setHidden

2008-08-22 Thread Stuart Green
o NO Or you may have an option to do so in IB itself On 22-Aug-08, at 9:28 AM, Stuart Green wrote: Hi, I've got a menu item in my app's root menu that I want to hide. I've referenced it as an IBOutlet as per: IBOutlet id itemToBeHidden; I'm trying to hide it as per

NSMenuItem - setHidden

2008-08-22 Thread Stuart Green
Hi, I've got a menu item in my app's root menu that I want to hide. I've referenced it as an IBOutlet as per: IBOutlet id itemToBeHidden; I'm trying to hide it as per: [itemToBeHidden setHidden:YES]; Problem is, item does not hide. Any ideas? Thanks, Stu __

warning: initialization makes integer from pointer without a cast

2008-08-21 Thread Stuart Green
Hi, I'm either overlooking something extremely simple here or I'm losing my mind. I have two NSString objects in a NSDictionary object that I am passing to a class method in the form: (int)validateUsersFor:(NSString *)username withEmailAddress:(NSString *)email Within the function, I

NSString stringWithFormat woes

2008-04-08 Thread Stuart Green
Hi, I have a string declaration of: returnString = [NSString stringWithFormat:@"%c-%i-%i-%f", asciiString, firstDouble, secondDouble, thirdDouble]; Which is producing a weird output when used outside of an NSLog. Examining each parameter in the debugger shows exactly what I want, i.e. an

Returning a value from a function

2008-04-08 Thread Stuart Green
Hi, I've currently got a function of type void that works swimmingly in the debugger. I now need to populate a text field with the value of the generated string within the function. The function is declared along the lines: - (void)convertFunctionWithValues:(NSString *)valueOne ValueTwo

Re: Returning a value from a function

2008-04-08 Thread Stuart Green
Thanks to everyone who contributed on this - have got it working well now and have implemented all tips. Working on the array idea now as I quite like it. All advice appreciated - every day is a school day! Cheers, Stu On 8 Apr 2008, at 09:52, Bryan Henry wrote: Also, according to your c

Returning a value from a function

2008-04-08 Thread Stuart Green
Hi, I've currently got a function of type void that works swimmingly in the debugger. I now need to populate a text field with the value of the generated string within the function. The function is declared along the lines: - (void)convertFunctionWithValues:(NSString *)valueOne ValueTwo