The 'New' item in the File menu is not enabled

2008-03-14 Thread Allison Newman
Hi, As a newbie to Cocoa, I'm working through the Hillegass book, and specifically the RaiseMan app. I've just implemented the code to save and load doculents, but for some reason, I'm not able to create a new document, or open an existing document (these options are disbaled in the File

Re: The 'New' item in the File menu is not enabled

2008-03-14 Thread Allison Newman
Oh, yup, that works. Thanks Kyle. Le 14 mars 08 à 23:17, Kyle Sluder a écrit : On Fri, Mar 14, 2008 at 6:06 PM, Allison Newman <[EMAIL PROTECTED]> wrote: As a newbie to Cocoa, I'm working through the Hillegass book, and specifically the RaiseMan app. I've just impleme

Rép : method declaration error

2008-03-27 Thread Allison Newman
Um, I'm more of a C girl than Objective-C, but I think this holds true for the two languages: the ampersand is an operator used to get the address of a variable. What you need is an asterix - this is the symbol used to denote that you want a pointer to a type rather than the type itself. Alli

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Allison Newman
I'm no expert, but you might want to look at mouseDownFlags in NSCell. Alternatively, you can recover the modifiers from the NSEvent given in mouseDown in your control. Or, you could wait until someone that knows what they are actually talking about replies :-) Alli __

radio Button newbie question

2008-04-26 Thread Allison Newman
Could somebody please put me out of my misery and tell me where I can find an example of using radio buttons in a Cocoa app please? Or better yet, a tutorial? I have just wasted several hours of my life trying to find one, because I can not make the sodding things to work!! thanks, Alli

Re: Regular Expressions?

2008-06-06 Thread Allison Newman
On Friday, June 06, 2008, at 10:24AM, <[EMAIL PROTECTED]> wrote: >As big of a fan as I am of both RubyCocoa and PyObjC, I would never >recommend either of them for use by someone relatively new to Cocoa >(of which it sounds like the OP might be). > >Even with the awesome quality of the bridge

Learning Cocoa with RubyCocoa (was Regular Expressions)

2008-06-07 Thread Allison Newman
things, and having to learn that at the same time as learning Cocoa itself makes for a very steep learning curve. The RubyCocoa or PyObjC bridges make it possible to reduce the steepness of the curve. > Le 7 juin 08 à 04:54, [EMAIL PROTECTED] a écrit : > > On Jun 6, 2008, at 2:10 AM

re: NSDate, NSTimer, NSTimeInterval combined question

2008-08-01 Thread Allison Newman
Eric, Without looking too closely, I see several problems, there may be others. Firstly, in your updateTextfield method, you are using startTimewithout initialising it. Secondly, in your timer callback (updateTextfield), you never update the value of your clock gadget, so of course it d

Cancelling screensaver/sleep from an app

2008-08-04 Thread Allison Newman
Hi everyone, In my current app, I have long periods where the user may not interact with the app, but where the app display updates continuously, and the user continues to watch the app (think playing a movie, or something like that). How do I go about disabling the screensaver/sleep mode wh

Documentation

2008-08-04 Thread Allison Newman
Following on from my previous message, a few months back, we had a long discussion on this list about whether the documentation was of a good quality or not. This is an example where I find myself completely unable to find the documentation that I need to answer the question myself. If anyone

Re: Documentation

2008-08-04 Thread Allison Newman
On Monday, August 04, 2008, at 02:42PM, "I. Savant" <[EMAIL PROTECTED]> wrote: > I think the long on-list discussion(s) you mentioned about the >documentation kept pointing back to the feedback mechanism. This isn't >really the place to complain if you expect results. Post feedback, >contact DTS

Re: Documentation

2008-08-04 Thread Allison Newman
On Monday, August 04, 2008, at 02:42PM, "I. Savant" <[EMAIL PROTECTED]> wrote: > I think the long on-list discussion(s) you mentioned about the >documentation kept pointing back to the feedback mechanism. This isn't >really the place to complain if you expect results. Post feedback, >contact DTS

Re: Documentation

2008-08-04 Thread Allison Newman
Yup, I should have made that clearer in the initial post. Basically what I was trying to get at is what happens when keyword searches fail to turn up the info that you need. I generally try searching in much the same way as you (API search, list archives, Google - though I use non-site lim

Re: Is this a bug, or am I hacking?

2008-08-14 Thread Allison Newman
Hi Graham, Generally speaking, string constants are only optimised within statically linked binaries. Dynamically linked libraries, such as dll's, so's and Mac bundles will not share constants. Basically, under the hood, when you link together all of your object files at build time, the