Re: Having a problem turning on window.
Re: Having a problem turning on window.
- Subject: Re: Having a problem turning on window.
- From: Shane Stanley <email@hidden>
- Date: Mon, 26 Jan 2015 10:02:53 +1100
On 26 Jan 2015, at 1:02 am, Brian Christmas <email@hidden> wrote:
>
> makeKeyAndOrderFront is exactly how I started off, and it didn’t work, so I’ve been fruitlessly trying other options.
Which in some ways sounds like a reasonable thing to try, but is a good example of why the trial-and-error approach alone can be a waste of time. You've never had to muck around with visibility or display before. You've never seen them required in other examples. So although it might be an understandable urge, if you stopped and thought about it, you probably knew they weren't going to work, and all they would do is make the problem seem more complex. In cases like this you're better to jettison code rather than add more. Start by putting a log statement and return statement after the line that should open the window, and work from there. Do a project clean.
The problem with throwing code at things like this is that once you fix the problem, it's easy to just leave it there. It can also mislead you about what solved the problem. Then you end up with lots of messy code that just makes your life more difficult in future.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden