Re: Saving window and view state with NSDocument

2015-09-21 Thread Kurt Sutter
tioned state > restoration is responsible for this). > Also don't forget to call updateChangeCount (if you don't support undo). > > > > On Mon, Sep 21, 2015 at 9:46 PM, Kurt Sutter <mailto:k...@quansoft.com>> wrote: > Thanks, Marek > > So h

Re: Saving window and view state with NSDocument

2015-09-21 Thread Kurt Sutter
methods encode/init withCoder > > Marek. > > On Mon, Sep 21, 2015 at 8:09 PM, Kurt Sutter <mailto:k...@quansoft.com>> wrote: > Hi all > > I am trying to figure out how to store information about my windows and views > in a document, and how to restore it. Note

Re: Saving window and view state with NSDocument

2015-09-21 Thread Kurt Sutter
Isn’t state restoration something that goes into the app’s preferences (or somewhere else into the app’s container)? What I am looking for is some way to store that information in the document. > On 21 Sep 2015, at 20:53, Quincey Morris > wrote: > > On Sep 21, 2015, at 11:09 ,

Saving window and view state with NSDocument

2015-09-21 Thread Kurt Sutter
Hi all I am trying to figure out how to store information about my windows and views in a document, and how to restore it. Note that I am talking about storing the information in the document itself, not in the application’s preferences settings. Specifically, I have a child of NSDocument that

Re: NSFontPanel for a modal window

2015-06-14 Thread Kurt Sutter
4 Jun 2015, at 23:52, Graham Cox wrote: > > >> On 14 Jun 2015, at 2:30 pm, Kurt Sutter wrote: >> >> It does not help — the panel i actually already in front when it appears, >> and calling -orderFront: does not help. It only works when it is the key >> window. > &

Re: NSFontPanel for a modal window

2015-06-13 Thread Kurt Sutter
changeFont: selector of my textView is (correctly) called. Best regards Kurt > On 14 Jun 2015, at 06:55, Ken Thomases wrote: > > On Jun 13, 2015, at 12:08 AM, Kurt Sutter wrote: > >> I have a modal window (run with [NSApp runModalForWindow:]) that sports a >> view that is a

Re: NSFontPanel for a modal window

2015-06-13 Thread Kurt Sutter
It does not help — the panel i actually already in front when it appears, and calling -orderFront: does not help. It only works when it is the key window. Kurt > On 14 Jun 2015, at 01:40, Graham Cox wrote: > > >> On 13 Jun 2015, at 6:33 pm, Kurt Sutter wrote:

Re: NSFontPanel for a modal window

2015-06-13 Thread Kurt Sutter
at a loss here. Kurt > On 13 Jun 2015, at 09:17, Graham Cox wrote: > > >> On 13 Jun 2015, at 3:08 pm, Kurt Sutter wrote: >> >> I then bring up the font panel calling [NSFontPanel sharedFontPanel] >> >> The font panel comes up, and does not hav

NSFontPanel for a modal window

2015-06-12 Thread Kurt Sutter
I have a modal window (run with [NSApp runModalForWindow:]) that sports a view that is a descendant of NSTextView. The view has key focus and text is selected therein. I then bring up the font panel calling [NSFontPanel sharedFontPanel] The font panel comes up, and does not have key focus. When

beginOpenPanel:forTypes:completionHandler woes

2013-05-05 Thread Kurt Sutter
when one forces an update by scrolling. calling validateVisibleColumns does not help. Are we expecting functionality that is not planned to be there or could we be doing something wrong? Anybody knows of some workarounds? Thanks for any advice in advance Kurt Sutter Quantu

NSOpenPanel not showing iCloud

2013-04-03 Thread Kurt Sutter
Dear all We are trying to make our application iCloud savvy. We have sandboxed it, and we have enabled iCloud in the Xcode target settings. The application uses NSDocument-derived documents. We are using the latest public release of Mac OS 10.8 The save dialog boxes show iCloud as expected, a

Re: NSSavePanel default file type

2012-06-13 Thread Kurt Sutter
rt dialog or a standard save dialog with a > custom accessory view? Sounds like you need to use a custom accessory view, > although this would most likely require you to code all the export features. > > Todd > > > On Jun 12, 2012, at 10:11 PM, Kurt Sutter wrote: > >

Re: NSSavePanel default file type

2012-06-12 Thread Kurt Sutter
I could, if there were an official api to get that NSPopUpButton. Is there? I did not find one. Kurt On 12. Jun 2012, at 23:15, Martin Wierschin wrote: >> Our app allows to export its documents in a variety of formats, such as >> jpeg, tiff, png, pdf . Hence, we have set up the NSSavePanel to

NSSavePanel default file type

2012-06-12 Thread Kurt Sutter
first format. So, how can I set the item in the popup that is initially selected when the save panel comes up? Any advice is welcome Best regards Kurt Sutter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kurt Sutter
On 23. May 2011, at 20:15, Kyle Sluder wrote: > On Mon, May 23, 2011 at 11:10 AM, Kyle Sluder wrote: >> If you want to drag into other applications, you really can't >> constrict the drag direction. It doesn't make sense. > > Hmm, maybe I'm not clear on what you want to do. Are trying to enable

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kurt Sutter
representation that some users want to drag into Keynote) Kurt On 23. May 2011, at 17:48, Kyle Sluder wrote: > On Mon, May 23, 2011 at 8:28 AM, Kurt Sutter wrote: >> My view implements dragging of the objects it displays. The user should be >> able to constrain the coordinates of the

cocoa dragging and constraining coordinates

2011-05-23 Thread Kurt Sutter
This may be a dumb question, but I cannot find a useful solution. My view implements dragging of the objects it displays. The user should be able to constrain the coordinates of the drag to purely horizontal/vertical by holding down the shift key, i.e. the position of the image passed to dragIm

NSScroller: Hiding the knob

2011-04-20 Thread Kurt Sutter
ob is always there, with varying size. I guess I could override drawKnob, but that sounds hack-ish. Does anyone know what to do? Thanks for any advice in advance Kurt Sutter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

changing name of untitled document

2011-01-01 Thread Kurt Sutter
hi Our application supports two types of NSDocuments. One contains data, the other drawings. Hence, we have defined two sibling classes of NSDocument: DataDocument and DrawingDocument. When I create a new instance of DataDocument or DrawingDocument, its window is named "Untitled". However, I w

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
On 3. Oct 2010, at 3:54, Kyle Sluder wrote: > On Oct 2, 2010, at 3:10 AM, Kurt Sutter wrote: > >> Sorry to be obtuse, but it may be that I am overlooking something. >> Presently, we have calls such as >> >> n = PyNumber_Float(obj) >> s = PyString_AsString(o

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
On 2 Oct 2010, at 11:07, Ken Thomases wrote: > On Oct 2, 2010, at 3:48 AM, Kurt Sutter wrote: > >> Yes, that is an option I have considered. But, if I understand this >> correctly, it would mean resolving some hundred symbols through dlsym and >> providing a glue f

Re: info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-02 Thread Kurt Sutter
in the search path of the dynamic library loader. Any thoughts about this?) Kurt On 2. Oct 2010, at 10:29, Ken Thomases wrote: > On Oct 1, 2010, at 11:49 PM, Kurt Sutter wrote: > >> In our application, the user should be able to change the version of a >> library that

info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-01 Thread Kurt Sutter
anyone out there have an idea how to solve this? Any suggestions are appreciated. Kurt Sutter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

NSForm from NSFormCell

2008-08-08 Thread Kurt Sutter
I have a series of NSFormCell objects in an NSForm. Given the NSFormCell object, is there a way to get the corresponding NSForm object? More specifically: I have added an class extension to NSFormCell, which does some operations on the form cell. One of the operations requires the method