• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSSearchField retaining NSDocument?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSSearchField retaining NSDocument?
      • From: Adam Knight <email@hidden>
  • Prev by Date: Re: what happend of the .hidden file in Tiger?
  • Next by Date: Re: what happend of the .hidden file in Tiger?
  • Previous by thread: stringWithContentsOfURL:usedEncoding:error: Fails on Mac Roman?
  • Next by thread: Re: NSSearchField retaining NSDocument?
  • Index(es):
    • Date
    • Thread