cocoa
Print Menu Item enabled/disabled for various NSWindowControllers
I have changed my Print menu item to send the -printWindow: message to First Responder and defined that method on two of my window controllers (my primary and a secondary window). On my primary window[详细]
2023-04-11 02:55 分类:问答Best way to convert PDF to high-resolution image in Cocoa
What is the best way to convert PDF to 300 dpi (for example) tiff in Cocoa? I use PDFImageRep for creating NSImage but I c开发者_运维百科annot find the way to enlarge the resolution.The solution is t[详细]
2023-04-11 02:32 分类:问答Where the Date Time preferences data is saved on mac [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-04-11 01:47 分类:问答How to store salt and IV in file cocoa?
So I have implemented salts and IVs, but the decryption is now a bit buggy. Of course, I need both the salt and IV for decryption as well, but the user can\'t enter that... I need to be able to store[详细]
2023-04-11 01:06 分类:问答NSTimer inaccurate?
I\'m using an NSTimer to update a label that shows the current time each minute. I fire the timer at a full minute date (e.g. 2:23:00 instead of 2:22:17). The problem is that NSTimer seems to work ina[详细]
2023-04-11 00:53 分类:问答Main NSWindow shadow doesn't change like child windows
The primary window in my app is borderless: [self.window setStyleMask:NSBorderlessWindowMask]; From that window, I also open other child windows. When I click around between those other child windo[详细]
2023-04-11 00:40 分类:问答Sort Array using Desciptors throws valueForUndefinedKey
I\'m trying to sort an NSMutableArray of YOEvento objects. YOEvento.h @interface YOEvento : NSObject { NSString *nombre; // stores the <name> tag[详细]
2023-04-11 00:11 分类:问答Open and close NSWindow with NSButton through NSWindowController?
I\'ve got a custom NSButton that I\'m actually sticking in an NSStatusItem. When the NSButton is clicked, it launches my window. When the 开发者_如何学PythonNSButton is clicked again, the window shoul[详细]
2023-04-10 23:58 分类:问答Migrating complex core data model
I have a couple of questions about core data model migration. I have a pretty complex data model with a couple cases of entity inheritance. I was going to make some changes to the data model in a new[详细]
2023-04-10 23:37 分类:问答Read property from XIB file prior to instantiation
There are a couple of times I\'ve wanted to use the value from a XIB file prior to creating an instance of the class; the two that come to mind are:[详细]
2023-04-10 22:41 分类:问答