On Apr 6, 2009, at 19:35 , Ben Golding wrote:
I've been trying to create a calendar matrix of days which are
clickable to select a day in the month. It's a something of a
classic example of using NSMatrix from what I've read but I'm trying
to use bindings to hook it up.
I am using an
On Mar 24, 2009, at 13:43 , Dave Keck wrote:
You're binding a levelIndicator? The LevelIndicator's value binding
is
"read-only". That's why it looks like you've changed the value, but
you
really haven't. The rest of your setup sounds correct.
The docs:
http://developer.apple.com/documenta
On Mar 24, 2009, at 11:52 , Walker Argendeli wrote:
I'm sorry for the trouble I'm giving you explaining this.
The "Item.selection.priority" keypath indicates that you are
referencing the key "Item" of the array controller (as you
describe). How is that key defined?
I'm binding to the array
Chances are you're calling add: on the arrayController and then
assuming that the newly added object is added to the array immediately.
I'm pretty sure the documentation says that that's an incorrect
assumption. If the value absolutely positively has to be there right
away, use addObject:. Th
Hi Peter,
I only skimmed through your description/question, but I'm reasonable
sure I know what you're asking and what the answer is.
The outlineView identifies its items by pointer comparison. So two
objects that are logically the same can show up in the tree together,
but they can have d
On Jan 7, 2009, at 1:55 PM, Sean McBride wrote:
Hi all,
Is it safe to call unbind: in finalize? Is unbind: thread-safe?
Traditionally, Apple has recommended calling unbind: in a view's
dealloc
method. With GC one might be tempted to call it in finalize, but 1)
finalize is discouraged in
The dictionary controller doesn't support customizing object class.
Please file an enhancement request, including info on what behaviour
you're trying to add.
The dictionary controller is really designed for a specific use case -
showing dictionary entries in a tavleview.
A higher level object (PMController ) contains an NSMutableArray
property which stores a collection of "PMProject" objects and an
NSTreeController property to serve as the intermediary between the
NSMutableArray and an NSOutlineView.
I'm setting up the NSTreeController like so:
- (
On Oct 27, 2008, at 12:40 PM, Andy Lee wrote:
On Oct 27, 2008, at 3:25 PM, Ron Lue-Sang wrote:
On Oct 27, 2008, at 10:49 AM, Jerry Krinock wrote:
So it seems like I need to instead use my own instance variable,
myMOC. Something like this should work:
- (NSManagedObjectContext
Hi Jerry,
Scroll down…
On Oct 27, 2008, at 10:49 AM, Jerry Krinock wrote:
Documentation for -[NSPersistentDocument managedObjectContext] states:
"If a managed object context for the receiver does not exist, one is
created automatically. You override this method to customize the
creation o
Hey Ashley,
On Oct 21, 2008, at 12:23 AM, Ashley Clark wrote:
I'm pretty sure I've got this worked out and it seems to be working,
BUT I thought that before and when I turned on Auto Arrange Content
on my NSArrayController's this bug popped up. So I wanted to make
sure I'm doing this right
The only reason a controller would return NO for commitEditing is that
one of *its* editors refused to commitEditing. Up the chain somewhere,
there must be a textField bound to the controller or one of its detail
controllers and a formatter or validation method is saying that the
current va
NSOutlineView bindings only work when bound up to an NSTreeController.
On Oct 19, 2008, at 4:26 AM, Ken Tozier wrote:
Hi
I'm working my first NSOutlineView app and trying to programatically
bind the the "content" property of an NSOutlineView to a mutable
"files" array property of a class a
On Oct 15, 2008, at 2:53 AM, Sebastian Morawietz wrote:
Hi folks,
I'm trying to implement a simple object bridge in cocoa where the
bridge object acts as a kvo/bindings-compliant drop in for some
arbitrary other NSObject-instance.
Here is my problem (more details in the attached code):
A Bri
On Oct 14, 2008, at 4:06 PM, Graham Cox wrote:
On 15 Oct 2008, at 9:30 am, Citizen wrote:
I have a master-detail interface, where the Detail interface is in
a separate nib from the main Master interface (so that different
Detail interfaces can be swapped in).
The main Master interface nib
Nope. No way to swap out the valuetransformer of the binding per row.
You can use part of Keary's suggestion tho. Don't set a
valuetransformer at all in the binding for the column. Use the
willDisplayCell: delegate method to take the value out of the cell,
apply your own value transformatio
On Oct 17, 2008, at 4:08 PM, Ron Aldrich wrote:
Folks,
I'm trying to use the new NSDictionaryController in a project I'm
working on, and I'm running into a bit of trouble.
I have a dictionary which contains a list of MB_Robot objects,
sorted by their unique IDs. Each MB_Robot provides t
On Oct 9, 2008, at 2:44 AM, Ruotger Skupin wrote:
Hi,
Since Ron asked, let's move this to an own thread (no pun intended):
Am 08.10.2008 um 18:23 schrieb Ron Lue-Sang:
Hi,
I have a core data database with two contexts attached to it. One
read-only for the main thread and bindings
On Oct 8, 2008, at 9:48 AM, Steve Cronin wrote:
Folks;
I have two custom tableViews and two custom arrayControllers.
The reasons for the custom objects are so the UI can respond to
specific key events and for drag and drop support.
Both tableView have their appropriate arrayControllers desig
On Oct 8, 2008, at 4:17 AM, Ruotger Skupin wrote:
Hi,
I have a core data database with two contexts attached to it. One
read-only for the main thread and bindings, one read/write for a
background thread that takes data from the network and feeds it into
the database. I know this is an ef
On Oct 8, 2008, at 8:49 AM, Lee, Frederick wrote:
Assuming the following:
@property(retain) myVar;
...
@synthesize myVar;
...
-(void) dealloc {
// Can I use:
self.myVar = nil;
// versus:
[myVar release]; // ?
}
I've seen examples of using [myVar release]. But doesn'
On Aug 29, 2008, at 10:38 AM, Oleg Krupnov wrote:
Here's a fragment of documentation from the "Cocoa Bindings
Programming Topics" guide:
"In order for a controller to create new content objects automatically
or in response to the target-action methods, it must know the
appropriate class to use
On Aug 29, 2008, at 8:13 AM, Dave Dribin wrote:
On Aug 29, 2008, at 10:03 AM, Phil wrote:
On Sat, Aug 30, 2008 at 2:56 AM, Dave Dribin <[EMAIL PROTECTED]>
wrote:
Is there some benefit to using number values over string
constants, or is it
just stylistic differences?
Using NSStrings (or
Woah.
If you really want to use a custom cell, you're gonna want a custom
column as well. The bindings for the tableColumn come from the
tableColumn's dataCell's available bindings. Yea, as you've found,
NSActionCell has a value binding, not plain old NSCell.
But of course, nothing's as si
Are there any other threads doing anything?
This smells like a deadlock to me.
Can you open the same file using the plain CoreData (non document
based) app?
On Aug 25, 2008, at 8:49 PM, Chris Idou wrote:
I've got a really simple application of core data. It's a document
based application,
Subclass and override newObject which is declared in
NSObjectController.h
You can set any properties you like from there.
-
RONZILLA
On Aug 19, 2008, at 7:27 AM, Chris Poliquin <[EMAIL PROTECTED]>
wrote:
Hi,
I have an ArrayController in IB to manage an array of NSObj
Hey Godfrey,
I just happened upon this email. Could you please file a bug and
include a sample project?
On Jun 21, 2008, at 12:44 AM, Godfrey van der Linden wrote:
Ok I gave up. No response was expected and I received what I
expected.
I suspect, but can't prove it, that there is a subtle
e
id task = [controller selection];
or as some will prefer for true technical correctness
id task = [controller selection];
2008/8/16 Ron Lue-Sang <[EMAIL PROTECTED]>
On Aug 15, 2008, at 4:57 PM, Andrew Zahra wrote:
I am working on a basic core data app. I have a single entity with a
On Aug 15, 2008, at 4:57 PM, Andrew Zahra wrote:
I am working on a basic core data app. I have a single entity with a
name
attribute and other attributes including a file path. I have bound a
table
view to the entity name and then a group of text fields to the
individual
attributes to show
Are you able to just use CoreAnimation directly?
Like, CAKeyframeAnimation? I've never used it, but the header seems to
imply it'd apply to the problem you're trying to solve.
On Aug 15, 2008, at 10:36 AM, douglas welton wrote:
Chilton,
Ultimately a "curve" is just a lot of straight line,
On Aug 14, 2008, at 8:10 PM, Markus Spoettl wrote:
On Aug 14, 2008, at 5:07 PM, Ron Lue-Sang wrote:
Here's how I look at your situation.
Your view is bound to some property. It's job is to listen for KVO
notifications and redraw when it gets the KVO notification. That's
Here's how I look at your situation.
Your view is bound to some property. It's job is to listen for KVO
notifications and redraw when it gets the KVO notification. That's it.
One input. When there's a change on that one input, then redraw.
What you have is 2 inputs and only one notificatio
Two words. Un Do.
The changes you're making to the managedObject are being recorded for
undo. The undo action which coredata puts together behind the scenes
for you needs to make sure that the object that will be undone lives
for as long as the undo action does. Clear the undo stack or undo
On Aug 12, 2008, at 10:40 PM, R T wrote:
Using Core Data, my xcdatamodel has 1 entity (NSManagedObject) with
10 attributes. I need to add and remove the objects programmatically
(not by buttons). I have...
IBOutlet NSArrayController *ParamsNResults;
IBOutlet NSTableView *ParamsNResultsTabl
ed. Any
ideas?
--- On Tue, 8/12/08, Ron Lue-Sang <[EMAIL PROTECTED]> wrote:
From: Ron Lue-Sang <[EMAIL PROTECTED]>
Subject: Re: Is this how you can use bindings?
To: "Chris Idou" <[EMAIL PROTECTED]>
Cc: "cocoa-dev@lists.apple.com"
Date: Tuesday, August 12, 20
The way to think about this is, you bind the value of the text field
to a controller (or model) object that owns the value. Then, bind the
enabled binding of the button to the same property of of the same
controller and use a valuetransformer to check whether the value is nil.
So your setup
On Jul 21, 2008, at 8:52 PM, Todd Heberlein wrote:
Is there a way to link a controller (e.g., the NSArrayController) to
my NSDocument's NSUndoManager without having to add a bunch of code
to my NSDocument subclass?
For example, in Hillegass's book, the first example of RaiseMan
(Chap 8)
Are you just trying to delete old array controllers that are in entity
mode? You'll have to go through each array controller one by one and
take a look at which entity they've been assigned.
Once you delete the controllers, the bindings to those controllers
will be deleted as well. So this
On Jul 24, 2008, at 8:20 AM, Nicolas L. wrote:
HI all!
I'm interested in the way Interface Builder, Instruments and
probably a couple of other apps handle drag and drop. You know, how
the item dragged from the Library panel changes depending where it's
about to be dropped.
I've subclasse
On Jul 22, 2008, at 1:08 PM, kiran Sanka wrote:
I am adding a NSTableColumn to a tableview
NSTableColumn *aTableColumn = [[NSTableColumn alloc]
initWithIdentifier: @"title"];
[tableView addTableColumn:aTableColumn];
and Binding the tableColumn to an array controller (which contains
array o
On Jul 17, 2008, at 8:53 AM, Ivy Feraco <[EMAIL PROTECTED]> wrote:
There was a previous post back in April about a problem with binding
to the representedObject in NSViewController.
When instantiating the view controller, I set the represented object
to an NSArrayController.
vc = [[MyVi
On Jul 14, 2008, at 8:58 AM, Dave Dribin wrote:
On Jul 11, 2008, at 2:36 PM, Bill Bumgarner wrote:
If you have specific enhancement requests, please file a bug via http://bugreporter.apple.com
. If your request is "make MVC and KVO play nicely with threads",
you will need to provide detail
On Jul 8, 2008, at 8:02 AM, Jon Gordon wrote:
I can't understand why I'm getting an exception when I try to use
the array operators.
Here's what I'm trying to do. One instance variable is a
NSMutableArray named "contacts". This array contains instances of
objects that have a "call" pro
*sigh*
I haven't looked at these docs recently. With that in mind, here's how
I think of things…
YES: Cocoa Bindings ®™ is built on KVC, KVO and KVB
KVB is an informal protocol. So Cocoa Bindings™® provides a concrete
implementation (on NSObject) of the KVB protocols.
In addition to prov
On Jun 26, 2008, at 12:46 PM, Quincey Morris wrote:
On Jun 26, 2008, at 12:03, Gabriel Shahbazian wrote:
I have some bindings set up that work perfect well with a Table
View (3 column) but when I try and use the Outline View it fails to
display the data. Is there something different you n
On Jun 29, 2008, at 10:44 AM, Stuart Malin wrote:
On Jun 29, 2008, at 7:05 AM, Scot t Anguish wrote:
From: Scott Anguish <[EMAIL PROTECTED]>
Subject: Re: mutableArrayForKeyValue Question (ignore other email)
To: "Alex Wait" <[EMAIL PROTECTED]>
Cc: cocoa-dev
Message-ID: <[EMAIL PROTECTED]>
C
On Jul 1, 2008, at 12:05 AM, Andy Kim wrote:
Thanks - I've seen solutions like this before, I just wanted to get
it working the regular way!
I totally understand the sentiment.
Is itemForPersistentObject expecting an NSTreeNode? You say you
have it working in a similar way - what does you
On Jun 30, 2008, at 10:25 AM, Owen Yamauchi wrote:
On Mon, Jun 30, 2008 at 7:27 AM, j o a r <[EMAIL PROTECTED]> wrote:
The thinking here is indeed that Xcode handles the creation of
classes,
while IB handles instances of classes and their configuration.
IB can actually create classes. In t
On Jun 30, 2008, at 2:53 PM, Hamish Allan wrote:
On Mon, Jun 30, 2008 at 10:43 PM, Ron Lue-Sang <[EMAIL PROTECTED]>
wrote:
Yes! infoForBinding is what you should use to implement the logic
in #1.
[...]
2b) Implement the "read" logic yourself by implementing bind:.
Wh
Sorry, I haven't read every message in this thread, but I think I can
answer the original question
[[self bar] bind:@"title" toObject:ivar_controller
withKeyPath:@"selection.displayName" options:nil];
Now here's the thing: if I call setDisplayName: on Foo, it calls
Bar's setTitle: metho
Hey Hamish.
Yea, that's correct. There's no "segment" object to bind. Not in the
same way that tableviews have individual column objects or menus have
individual menu items.
Still, go ahead and file an enhancement request describing, broadly,
what you're trying to do.
--
On Jun 11, 2008, at 4:44 PM, Daniel Price wrote:
As a test, I have an NSTreeController and an NSOutlineView within
the same nib of a CoreData application (Leopard). If I bind the
columns of the outline view to the controller directly within IB, it
works as expected. eg:
ShapeTC->arrangedO
On Jun 7, 2008, at 9:11 AM, John James wrote:
This seems like it should be easy, but I can not find anything with
various googles etc. I want to animate only my front view for
performance reasons. How do i determine the current top view
(document). I found something in carbon about FrontWi
On Apr 18, 2008, at 2:54 PM, Sean McBride wrote:
Hi all,
Consider an app that uses bindings and Core Data. It has a tableview
bound to an array controller. There is an 'Add' button that creates a
new entity to be shown in the table. It could be implemented by:
1) sending add: to the array
On Mar 28, 2008, at 10:08 PM, Ben Trumbull wrote:
Binding to .selection.a is going to call -valueForKeyPath:@"a" on
the array that's selected, which is 10,000 objects. Since the text
field can only show one of those values, this is kinda pointless.
This is the source of the recursion. S
55 matches
Mail list logo