Re: GUI Time Field
Re: GUI Time Field
- Subject: Re: GUI Time Field
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 22 Apr 2008 15:47:27 -0700
On Tue, Apr 22, 2008 at 3:24 PM, Justin Giboney
<email@hidden> wrote:
> Thank you for response, I hope I have improved my code.
The setter isn't doing the proper memory management. Review the following...
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmPractical.html#//apple_ref/doc/uid/TP40004447-SW4>
> I am binding my text field to the variable "theDateTime." I know this works
> because if I uncomment the commented line, I can see the date and time.
The set in the init method gets things setup before awakeFromNib is
called and before bound objects begin to pull their values from the
objects they are bound to. In other words setting this value in init
isn't proof that your UI objects are properly bound and/or your
objects are properly sending KVO notifications when a property
changes.
> The problem is that the UI isn't updating.
See if retaining the date object as needed solves that... If not
something additional is wrong.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden