Desperate for bindings help! Can ya spare a few minutes?
Desperate for bindings help! Can ya spare a few minutes?
- Subject: Desperate for bindings help! Can ya spare a few minutes?
- From: Steven Palm <email@hidden>
- Date: Tue, 14 Dec 2004 00:19:29 -0600
I'm at wits end... I've twisted this program upside and down, sideways,
and I can't see what it's problem is... It's probably so simple that
I'm over looking it, so if anyone would be so gracious as to download
this and take a peek, I'd be very so grateful!! This is going to be a
freeware GUI for the OpenVPN firewall, so many will benefit.
The problem is that many of the GUI elements are tied to the currently
selected item from the Configs array controller, but they don't update
properly UNLESS you pick a different config item in the list, then they
all update. FRUSTRATING! I fire off an NSTask, and when it terminates
I use the notification it sends to set the status to off which sets the
active flag to NO, which the GUI should reflect. All objects update,
debugging NSLog() statements show it flows through, but the GUI doesn't
update.
Per one suggestion, I made sure I wasn't trying to do updates from in a
different thread, but at every call of the setter routine I did a NSLog
of [NSThread currentThread] and it was always the same, so I don't
believe this is related to multi-threading. I also don't believe that
it's related to somehow having multiple copies of the controller
objects, since I'm not creating them programatically at all. Further,
when you switch the selected item in the list, all GUI elements update
properly so the right object must be getting updated.... <ugh!>
Anyway, if you can take a look, I'd be VERY grateful! I'd LOVE to use
the bindings system for this, it seems a perfect fit, but otherwise I'm
going to have to recode this all the old fashioned way and obviously
there's something I'm missing so future projects are likely to be
frustrating as well until this is uncovered. Cocoa shouldn't be this
hard! :-)
Thanks so much!
Steve
Project archive is at:
http://n9yty.dyndns.org/openvpn_gui.zip
P.S. If you download this, please let me know, and ANY COMMENTS are
welcome, I'm always anxious to learn how to do things better rather
than making it "just work".
_______________________________________________
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