Questions tagged [appkit]

The Application Kit is a collection of classes provided by OpenStep operating systems such as OPENSTEP, GNUstep, and Mac OS X.

The Application Kit is a collection of classes provided by OpenStep operating systems such as OPENSTEP, GNUstep, and Mac OS X.

Apple's reference documentation describes AppKit as follows:

AppKit contains all the objects you need to implement the user interface for a macOS app—windows, panels, buttons, menus, scrollers, and text fields—and it handles all the details for you as it efficiently draws on the screen, communicates with hardware devices and screen buffers, clears areas of the screen before drawing, and clips views.

Reference

1436 questions
0
votes
1 answer

NSScrollView generating scrollbar ghosts

Please see attached image: http://i45.tinypic.com/fu8bpz.png Has anyone every seen this kind of weird scroll bar behavior? I embedded a custom view in an NSScrollView. The scroll bars do not appear to be drawing correctly, and they also appear in…
kernelK
  • 189
  • 1
  • 3
  • 14
0
votes
1 answer

NSPanel as HUD Panel - fullscreen makes strange empty space

I have NSPanel window with style Utility panel (gray small title bar). I can fullscreen this window using standard MAC OS X fullscreen feature. But one strange thing happens - the content view of window doesn't use whole screen, there is small empty…
sarsonj
  • 233
  • 1
  • 13
0
votes
1 answer

NSCollectionViewItem, size to content

I have an NSCollectionView, which I'm binding to a collection of strings. The view that I'm using for my NSCollectionViewItem is very simple, it simply contains an NSTextField. NSView - NSTextField The length of the strings is variable. Is there any…
0
votes
2 answers

App not hideable

I know that it is possible to make a NSWindow unhideable. But is it also possible, is there a property, to tell the compiler to make the whole app not hideable ?
CSS - code
  • 135
  • 1
  • 8
0
votes
1 answer

Display NSPopover above dock icon

How can I display an NSPopover above my app's dock icon?
Matthew H
  • 5,831
  • 8
  • 47
  • 82
0
votes
2 answers

NSUserDefaults per document

Does the AppKit framework provide a way to store NSUserDefaults per NSDocument? If not, how would you recommend to implement this?
hpique
  • 119,096
  • 131
  • 338
  • 476
0
votes
1 answer

Error when calling locationInView:

Please help me. I have next issue: I want to handle touchesMoved: event in my subclass of UIViewController (I have an view with view controller), but when I call [aTouch locationInView:self] got an exception 'NSInvalidArgumentException', reason:…
Lexandr
  • 679
  • 1
  • 6
  • 22
0
votes
1 answer

NSImage and NSBitmapImageRep Memory Leak

I am using objective C in a c++ application to load images on OSX. It is an OpenGL application. This is the code I use to load an image into opengl: bool OSXSpecifics::loadPNGOSX(const char *fileName, int &outWidth, int &outHeight, GLuint…
DavidColson
  • 8,387
  • 9
  • 37
  • 50
0
votes
1 answer

WebView key input

My app allows user to navigate around a grid with the keyboard using all the arrow keys, enter and escape. The user can open and close items, including links. If the user opens a link to a webview, and the webview gain first responder, and the…
John Wright
  • 2,418
  • 4
  • 29
  • 34
0
votes
1 answer

PDFViewAnnotationHitNotification not being delivered

I'm implementing a PDF viewer on the Mac and I want to let the user add annotations. I've added a PDFAnnotationText to the page, and it appears just fine, but when the user clicks on it, the whole document is shrunk and an annotation list appears…
stevex
  • 5,589
  • 37
  • 52
0
votes
0 answers

NSTableView weird scrolling behavior in Mountain Lion

I have an app with a source list. In Lion, it works wonderfully. In Mountain Lion, it works fine, but there's an unwanted side effect. Whenever the selected row changes in the source list, Mountain Lion will scroll that row to the top of the…
Jay Wardell
  • 2,230
  • 1
  • 14
  • 13
0
votes
1 answer

NSMatrix with Shadowed buttons on sides

I have an NSMatrix with a bunch of NSButtonCells as its content. I want to create an effect similar to the Xcode4 navigator area (image from Apple website), where the selected button has a recessed feel to it with a shadow on the left and right…
0
votes
1 answer

NSRectFill without context results in debug warnings

I'm trying out drawing in Objective-C with NSRect, but all the examples I find online result in a warning in the output log. It does draw on the View, but I would like to see that there are no issues reported by the debugger :). I read some things…
user1467267
0
votes
0 answers

View based tableview and animating

I recently switched to using a view based tableview as it greatly simplifies a lot of my code, loving it so far. In the sample apps mentioned and demo'd in the session video of WWDC 2011, they have some cool animations which are rather simple to…
Antwan van Houdt
  • 6,989
  • 1
  • 29
  • 52
0
votes
1 answer

How to check if windows are intersecting?

I have an array of open NSWindows. How can I check to see if any of these intersect?
Yep
  • 653
  • 5
  • 20