The Application Kit is a collection of classes provided by OpenStep operating systems such as OPENSTEP, GNUstep, and Mac OS X.
2
votes
0answers
52 views
Subviews of a NSCollectionViewItem's view are always nil
I have a very basic setup with a NSCollectionView. I have a subclassed NSCollectionViewItem which is used as the itemPrototype for the collection view. The collection view item has a view.
Using ...
2
votes
0answers
210 views
How find out if I'm an NSButton with buttonType NSSwitchButton?
I'm subclassing NSButtonCell to customize the drawing (customizable theme). I'd like to customize the way checkboxes and radio buttons are drawn.
Does anyone know how to detect whether a button is a ...
2
votes
0answers
218 views
Autocomplete window appearing in wrong place for NSTokenField
I have a layer-backed NSTokenField that is in a NSSplitView. The split is initially collapsed, with the token field hidden. When I reveal the token field, it works properly, except that the ...
1
vote
0answers
62 views
Strange Behavior With NSTextField and an NSAttributedString Placeholder
I'm adding a placeholder to an NSTextField:
NSTextField *textField = [[NSTextField alloc] initWithFrame:NSMakeRect(0.0, 0.0, 100.0, 30.0)];
NSAttributedString *string = [[NSAttributedString alloc] ...
1
vote
0answers
28 views
Is it possible to turn NSNonactivatingPanelMask on and off on an NSPanel
I understand that this use case is atypical, but I've been trying to figure out a way to make an NSPanel non-activating, only in some circumstances.
If an NSPanel is initialized with ...
1
vote
0answers
83 views
Composing NSViews using Interface Builder only
I have some custom views that I want to reuse throughout my application.
I create a new Objective C class in XCode and set the type to 'NSViewController'. I check the box to create .xib file for the ...
1
vote
0answers
85 views
Open untitled file in Document-based app
I want my app to open new untitled document every time it starts. It worked in 10.6 but now I upgraded to 10.8 and when I close the window with cmd+w and then restart the application it wont open any ...
1
vote
0answers
66 views
Programmatically launching OS X's Contacts app showing a contact?
Let's say that I've just created an ABPerson record and managed to save it in the user's address book. How do I programmatically open the default application which handles the address book (which most ...
1
vote
0answers
100 views
Auto layout - The default spacing isn't the same between different for the NSTextField and the NSDatePicker [PIC]
I am using auto layout to organize my views for me. I am currently in the testing/design phase of a project and I am just trying to get this to work properly.
I have stacked a number of elements ...
1
vote
0answers
80 views
Getting continuous drag events for NSTextView
I'm new to NSTextView and AppKit event handling in general, so maybe this is simple. I'm trying to get the proper way to handle continuous drag events on a selected range of text from NSTextView. That ...
1
vote
0answers
166 views
Loading Images in Interface Builder (Cocoa)
When I load my images in Interface Builder, and choose the scaling as: "None", it adds the image scaled down a lot! I'd say almost 70% !!
Using "Proportionally up or down", and settings the image ...
1
vote
0answers
145 views
Open QLPreviewPanel in 'multi display' mode
I'm using QLPreviewPanel to display the contents of a folder. By default this shows the first item and then the user can tap the multi display button to display them all. I would like to go into multi ...
1
vote
0answers
150 views
Minimize-in-place - Do I need a custom framework
I want to create a system wide minimize-in-place feature that occurs when double-clicking the title bar of any visible window in layer 0.
It seems that this would be a really simple feature to ...
1
vote
0answers
186 views
Strange NSPasteboard and TextEdit interaction
I am drag-dropping a string from two places in my app. One from a custom NSView and one from a NSTableDataSource delegate. The first one allows me to drag text into the TextEdit application, the ...
0
votes
0answers
12 views
AppKit NSView class gets redefined
I have ported an older Xcode project to a new machine. The original version of this project was made on Snow Leopard OS, with 3.2.6 Xcode.
When i tried to recompile this project on the new machine ...