Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Nick
Can't find that sheet override. I've searched everything. Used text search either. Here's what I've found: Basically (as I understand) this 'you have an unsaved document. Sure to quit?' sheet is displayed from the - (void)saveDocumentWithDelegate:(id)delegate didSaveSelector:(SEL)didSaveSelector c

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread John Joyce
Yes TextEdit uses NSDocument, it has long been the NSDocument sample app On Sep 21, 2011, at 1:41 PM, Jens Alfke wrote: > > On Sep 21, 2011, at 11:28 AM, Nick wrote: > >> do you know how did Apple developers make TextEdit display a custom sheet >> for notifying that the document that's being c

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Jens Alfke
On Sep 21, 2011, at 11:28 AM, Nick wrote: > do you know how did Apple developers make TextEdit display a custom sheet for > notifying that the document that's being closed needs to be saved? It doesn't > look like an ordinary default NSDocument's "Do you want to save the changes > you made in

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Nick
Jens, do you know how did Apple developers make TextEdit display a custom sheet for notifying that the document that's being closed needs to be saved? It doesn't look like an ordinary default NSDocument's "Do you want to save the changes you made in the document. Your changes will be lost if you do

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Jens Alfke
On Sep 21, 2011, at 9:43 AM, John Joyce wrote: > Based on the screenshot, "Save as Plain Text" > This function would probably be better suited as a preference at the app or > document level. Not necessarily; it’s pretty common to put this in the Save panel. For example, both TextEdit and Prev

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread John Joyce
Based on the screenshot, "Save as Plain Text" This function would probably be better suited as a preference at the app or document level. Another option would be adding an item to the File menu for Save as Plain Text. There are a lot of options, but some would indeed involve moving toward a cus

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Kyle Sluder
On Wed, Sep 21, 2011 at 3:41 AM, Nick wrote: > Hello > Is there a way to hide the border, that surrounds accessory view, added to > the NSSavePanel (i'd like to have a custom checkbox in this save panel)? I > managed to have this checkbox, but it added an ugly border that occupies the > whole line

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Nick
thank you 2011/9/21 Graham Cox > You *could* work back up the view hierarchy from your checkbox (likely you > have an outlet to it in your accessory controller) until you find the NSBox > then alter its settings so that it draws nothing. That might work. > > But I'd also just leave it alone, it'

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Graham Cox
You *could* work back up the view hierarchy from your checkbox (likely you have an outlet to it in your accessory controller) until you find the NSBox then alter its settings so that it draws nothing. That might work. But I'd also just leave it alone, it's the user's cue that you have added some

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Jerry Krinock
On 2011 Sep 21, at 03:41, Nick wrote: > http://rghost.net/22453441/image.png The correct terminology for "ugly border" is that Cocoa has "embedded the checkbox inside of an NSBox". To get rid of it, you might have to spend a lot of time re-implementing NSSavePanel. Particularly if your app s

how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread Nick
Hello Is there a way to hide the border, that surrounds accessory view, added to the NSSavePanel (i'd like to have a custom checkbox in this save panel)? I managed to have this checkbox, but it added an ugly border that occupies the whole line in NSSavePanel. An image of the problem is here: http: