• 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
Re: GUI Time Field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >GUI Time Field (From: Justin Giboney <email@hidden>)
 >Re: GUI Time Field (From: "Shawn Erickson" <email@hidden>)
 >Re: GUI Time Field (From: Justin Giboney <email@hidden>)

  • Prev by Date: Re: GUI Time Field
  • Next by Date: Re: NSString memory management question
  • Previous by thread: Re: GUI Time Field
  • Next by thread: Problems with [NSArray count]
  • Index(es):
    • Date
    • Thread