cocoa-bindings
How to use a single NSValueTransformer subclass to toggle the titles of multiple menu items
I would like to make some bindings that toggle item titles in a popup menu based on a single numerical value in a text field. Let me explain:[详细]
2023-01-17 16:22 分类:问答How do I create a Cocoa GUI to edit an array of NSDate objects?
In one app I am working on I need to let the user edit a list of dates. I have those NSDate objects in an array and bound that to a NSArrayController. I bound a NSTableColumn (the only column in a tab[详细]
2023-01-17 03:24 分类:问答Debugging COCOA Core Data bindings
In my document Core Data application I receive crash with report in console: Cocoa Bindings: Cannot create NSSet from object <_NSControllerObjectProxy: 0x26acb0> of class _NSControllerObjectProxy[详细]
2023-01-16 22:57 分类:问答Cocoa: Custom Controller Key for NSArrayController
Is it possible to create a custom controller key for an NSArrayController? There are keys for \"arrangedObjects\", \"selection\" etc... Is it possible to implement your own? I can\'t seem to find any[详细]
2023-01-16 18:34 分类:问答Cocoa; Binding a Text Field to the sum of a filtered array (from an NSArrayController)
I have (for example) a table with cars in. The cars each have a name, a color and a mileage. I can have a text field which displays the total mileage of all the cars using bindings in interface buil[详细]
2023-01-15 23:34 分类:问答NSOutlineView selection binding error
I got the next situation: NSOutlineView <-> NSTreeController <-> MyClass I bind the NSTreeController to an array of objects in MyClass, now I want to get the selected item from the NSOutlineVie[详细]
2023-01-14 08:08 分类:问答Slide and Label Update
Is there a way to update a label bind to a slider while the slider is draged? I bind the label to the slider via \'takeFloatValueFrom:\' but it\'s update the value only when i release the mo开发者_如何[详细]
2023-01-14 07:48 分类:问答Getting a unique identifier for each element of NSArrayController's content
I\'m making a custom view that I want to be bindings/core data compatible and represent a collection of data (a la NSTableView)[详细]
2023-01-12 21:26 分类:问答KVC array: getters vs indexed accessors?
I\'m confused by this: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/AccessorConventions.html#//apple_ref/doc/uid/20002174-178830-BAJEDEFB[详细]
2023-01-12 10:54 分类:问答Do I need two NSObjectControllers?
I\'m learning about Cocoa bindings. I\'m having two completely different objects, each with an iVar that I want to sync with a user interface item. But since they\'re two different ob开发者_如何学Pyth[详细]
2023-01-11 21:18 分类:问答