nswindow
Textfields appearing un-editable when showing back the window using CGDisplay
I am making an application in which: when user selects display menu option -> the window is displayed over whole screen and[详细]
2023-03-11 02:50 分类:问答Locking the Aspect Ratio of an NSDocument's window
I have a document based application and I am trying to lock the aspect ratio of the document\'s window. The content of the document is a custom view which I can easily set an aspect ratio. However, wh[详细]
2023-03-10 07:21 分类:问答Modal child windows - like sheets but not a sheet
I\'m trying to replicate the modal behavior of a sheet in Cocoa without actually using a sheet. That is, attaching a borderless child window to the main window and have the child window be the only re[详细]
2023-03-10 06:15 分类:问答windowWillReturnFieldEditor never called for NSTextView
Per protocol ref, windowWillReturnFieldEditor should be called for any text-displaying object when it needs a field editor. Indeed, my window delegate receives a call to this meth开发者_开发问答od for[详细]
2023-03-09 16:11 分类:问答How to obtain info of the program from the window list with CGWindowListCopyWindowInfo
I managed to get list of windows on the desktop with CGWindowListCopyWindowInfo, but the next time is to try to get the properties of the window, like the pro开发者_C百科gram name, title, and other pr[详细]
2023-03-09 09:36 分类:问答Memory Leak with NSWindowController's showWindow:
I\'ve been struggling with the following leak for a while now. I\'ve narrowed it down through Instruments to the following block of code:[详细]
2023-03-08 18:40 分类:问答Quit application after last window closes
I want to close my application when the last main window closes. I cannot use applicationShouldTerminateAfterLastWindowClosed: for the following reasons:[详细]
2023-03-08 16:31 分类:问答Designing views/windows in Mac OSX first time
I am about to tackle my first Mac OSX project after developing for iOS. In my iOS applications, it is clear to me the whole NavigationViewController->MyViewController->MyViews paradigm.[详细]
2023-03-04 21:07 分类:问答NSWindow: Passing mouse events through window to whatever is underneath
Is it possible to 开发者_运维百科pass mouse events through an NSWindow to whatever is behind it (even if it is a window from another application)?[详细]
2023-03-03 03:16 分类:问答NSWindow title bar is not draggable on its right half
I have an instance of NSWindow that I resize programatically (with setFrame). At its creation, it has a default size of 50x50. I then call setFrame to resize it to 350x450: everything is fine, I can d[详细]
2023-03-02 13:40 分类:问答