appkit
NSTextView not showing red misspelling underlines when on a layer
When an NSTextView is a subview of an NSView that is layer-backed (-wantsLayer == YES), it does not render the squiggly red underlines for misspelled words. All it takes to reproduce this is to make a[详细]
2023-01-29 07:19 分类:问答CGContextSetCompositeOperation error for some users when drawing NSWindow
A simple 10.6 Cocoa app I wrote that basically draws a regular window with some buttons and text has been spewing hundreds of console log messages开发者_运维技巧:[详细]
2023-01-24 19:23 分类:问答Cocoa (Snow Leopard) NSTextView's textStorage -setAttributes:range: removes characters!
I\'m not sure what I\'m doing wrong.I have a NSTextView and am registered as the delegate for its textStorage attribute.When I receive -textStorageDidProcessEditing:notification: I\'m trying to apply[详细]
2023-01-21 01:28 分类:问答Disable Full Keyboard Access for App
Can \"Full Keyboard Access\" (System Prefs -> Keyboard -> (Radio) All C开发者_高级运维ontrols) be controlled with some API? It causes major issues when this thing is on in my app (like buttons not wor[详细]
2023-01-20 21:32 分类:问答Borderless NSButton turns gray when clicked
I am making a little application with three NSButtons with an image set. These buttons have开发者_开发百科 no border nor background. However, when I click a button it turns into a gray rectangle.[详细]
2023-01-17 10:21 分类:问答Does NSXMLNode's nodesForXPath:error: guarantee a specific ordering?
I extr开发者_开发技巧act nodes from an XML document by calling -nodesForXPath:error:. Now i wonder if it guarantees, that the nodes are returned in the same order as they appear from top to bottom in[详细]
2023-01-17 09:09 分类:问答NSPopUpButton revert to initial state
I register for notification NSPopUpButtonWillPopUpNotification in order to change the pop up menu before it is shown. The new pop up menu consist of running Application list with respected icons. When[详细]
2023-01-15 16:20 分类:问答Reset Spinning Progress Indicator
A simple question here for many of you. I have an indeterminate NSProgressIndicator which I 开发者_JAVA技巧start and stop many times in my code. Does it reset when you call restart it, or do you have[详细]
2023-01-15 02:10 分类:问答how to keep track of webpage opened
Just wondering if there\'s a way to keep track of what website the user is browsing to via Cocoa or Webkit?[详细]
2023-01-14 00:36 分类:问答NSTextView inside an NSScrollView doesn't scroll :(
I have the following code in a stand-alone Cocoa test app: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {[详细]
2023-01-13 16:52 分类:问答