NSSearchField retaining NSDocument?
NSSearchField retaining NSDocument?
- Subject: NSSearchField retaining NSDocument?
- From: Adam Knight <email@hidden>
- Date: Sat, 27 Aug 2005 23:58:55 -0500
I have an NSSearchField in an NSView that I made in Interface
Builder. It's in the same NIB as the document and has no bindings
setup in IB. Both are connected to my document via outlets. I have
a toolbar item setup to use this view as an item.
If I track my document object without the search item then the
document releases properly. When I add the search item and don't set
it up, the document releases properly. When I add the following code:
[searchField bind:@"predicate"
toObject:entryController
withKeyPath:@"filterPredicate"
options:[NSDictionary dictionaryWithObjectsAndKeys:
@"Comments", NSDisplayNameBindingOption,
@"comments contains[cdw] $value",
NSPredicateFormatBindingOption,
nil]
];
The document finishes closing with a retain count of 1. Remove the
code and the document is released.
What could I be doing wrong here? How do I know what, exactly, is
blocking the release of the document?
Adam Knight
will bug code for food
http://www.codepoetry.net/
I ♥ my
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden