Re: bindings via file's owner don't update
Re: bindings via file's owner don't update
- Subject: Re: bindings via file's owner don't update
- From: Mikkel Eide Eriksen <email@hidden>
- Date: Wed, 1 Dec 2010 20:08:45 +0100
On Dec 1, 2010, at 7:41 PM, Kyle Sluder wrote:
> On Wed, Dec 1, 2010 at 10:09 AM, Mikkel Eide Eriksen
> <email@hidden> wrote:
>>
>> Well I feel a little dumb now. After lots of debugging and digging at values that looked correct everywhere, checking object creating again & again, and what not, It turns out I forgot to actually redraw the window:
>>
>> [[[self loadingWindowController] window] display];
>
> You should never have to do this.
>
> Are you doing anything multithreaded?
>
> --Kyle Sluder
No, not to my knowledge. Basically the nib is bound to the properties of GCDocument, and if I don't send display to the window, the bound NSTextFields just stay at the initial values.
See line 48 & onwards below:
http://code.google.com/p/cocoa-gedcom/source/browse/trunk/GCCoreData/src/GCDocument.m
(there are probably lots of terribly ugly non-Cocoa things in here, I'm only just starting out and come from a mostly perl/python/java background)
Mikkel
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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