Re: NSDocument saving query (SOLVED)

2016-04-14 Thread Michael McLaughlin
016, at 3:09 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Apr 14, 2016, at 11:55 , Michael McLaughlin <mmclaughl...@cox.net > <mailto:mmclaughl...@cox.net>> wrote: >> >> What is the recommended way to capture a Cance

NSDocument saving query

2016-04-14 Thread Michael McLaughlin
might Cancel. In this case, I would like to close the window and discard the new document. My problem is that saveDocumentAs returns void, not BOOL indicating success (or not). What is the recommended way to capture a Cancel in this case? Any sample code available? Thanks. -- Michael

NSMutableCharacterSet bug in Mavericks?

2013-10-27 Thread Michael McLaughlin
are recognized. Is this a bug or am I doing something wrong? -- Michael McLaughlin mmclaughl...@cox.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

NSView drawing with superimposed text

2011-01-02 Thread Michael McLaughlin
With Xcode 3.2.5 and the corresponding IB, I have a custom NSView into which I want to draw. This view has 15 static text views in front of it, in the contentView only, all of which are filled in before the custom drawing and none of which draw their own backgrounds. The code for the custom

Newbie query re default buttons

2008-05-22 Thread Michael McLaughlin
As a Cocoa newbie (after years of Carbon), I am working my way through the 3rd edition of Hillegass' book. I finished his SpeakLine example then thought I'd challenge myself by making the Speak button the default button -- but failed. I coded the following *** AppController.h @interface

Re: Newbie query re default buttons

2008-05-22 Thread Michael McLaughlin
, all of this is with Xcode 3.0 and OS 10.5.2. On 22.5.2008, at 16:51, Michael McLaughlin wrote: As a Cocoa newbie (after years of Carbon), I am working my way through the 3rd edition of Hillegass' book. I finished his SpeakLine example then thought I'd challenge myself by making the Speak