• 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
A couple of annoying Binding problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A couple of annoying Binding problems


  • Subject: A couple of annoying Binding problems
  • From: Robert Goldsmith <email@hidden>
  • Date: Sat, 9 Apr 2005 13:03:05 +0100

Hi all :)

Overall, I've had no problems with Bindings but the following two issues are starting to drive me up the wall and I was wondering if anyone has had the same problems and knows the solution:

1) Binding to File's Owner also retains
This problem seems to be well documented on the web but no-one seems to have a good, working solution. Basically, when you bind a gui element to File's Owner, both the element and the File's Owner also get retained. This prevents the normal window release releasing the File's Owner and you end up with memory leaks as you create and destroy windows. Anyone have a solution?


2) Weird rendering problem with text fields that are enabled and selectable.
I have various NSArrayController and NSObjectController instances bound with text fields being used to display info. The text fields are not editable but don't always have content to show. I am trying to use the 'no selection' and 'null' placeholder text options in the bindings to allow the text fields to show something generic when there is no data to show. However, if there -is- data being displayed in a text field (simple 1-line, label style text fields) and the user clicks on the field (e.g. to copy the contents to the clip-board), the placeholder text is rendered over (or under) the actual data! I have found turning off all binding options except 'raise for not-applicable' prevents this happening with text fields bound to an NSArrayController but this trick doesn't work for the NSObjectController. Anyone seen this problem? Any solution?


Thanks :)

Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
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

  • Prev by Date: Re: Packages vs. Finder (perceived stability problem)
  • Next by Date: Re: ADC Core Data article
  • Previous by thread: Re: selecting images
  • Next by thread: Why would IBOutlet NSPanel *aWindow be nil?
  • Index(es):
    • Date
    • Thread