Re: SystemStatusBar question
Re: SystemStatusBar question
- Subject: Re: SystemStatusBar question
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 9 Mar 2005 07:27:42 +0100
At 20:37 Uhr -0800 08.03.2005, daniel wrote:
On Mar 8, 2005, at 11:33 AM, Bill Cheeseman wrote:
on 2005-03-08 12:10 PM, Finlay Dobbie at email@hidden wrote:
On Tue, 8 Mar 2005 08:09:12 -0800, Vince Ackerman <email@hidden> wrote:
Is there anyway to get the StatusBarItem for the iChat Status Menu? If
you could, then you could check to see if the MenuItems change and get
the new item (ie available buddies ) that way....
No, there isn't, and that sounds like a horrendous ugly hack of a
way anyway.
So I beg to differ when you say that his approach is a "horrendous ugly
hack". I wrote PreFab UI Actions to allow techniques like this to work, and
they do work in most applications.
Another option would be to find code from an open-source AIM client
and query the server directly.
Supposedly there's also an (undocumented, unsupported, DANGEROUS!)
InstantMessage.framework that iChat uses internally, maybe you could
even get that to do what you want.
Still, in this particular case, I agree with previous posters:
Scripting the UI is a very error-prone approach:
1) The user may do something while your GUI-script is running and
cause you to end up in the wrong window
2) The user may have turned off or configured a particular part of
the UI (e.g. I know few people who have the iChat status icon turned
on)
3) If your script causes any windows or menus to open or apps to
change, this may surprise the users, or confuse them, or get in their
way (possibly leading to #1 above).
So, if you can, try to find a direct approach that uses
inter-application communication. It'll be more efficient, and more
reliable. Alternately, try not to talk to an application and instead
make your app do the work itself. After all, while most people only
quote:
"Every problem (...) can be solved by adding another layer of indirection"
the quote actually continues to say effectively:
"..., which will cause new problems."
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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