Re: Checking One Array Against Another
Re: Checking One Array Against Another
- Subject: Re: Checking One Array Against Another
- From: Pierce Freeman <email@hidden>
- Date: Fri, 28 Nov 2008 21:34:11 -0800
- Thread-topic: Checking One Array Against Another
Adam:
Sorry, I think that I didn't clearly state what I was asking. ;) My
problem, not yours... Anyway, I am wondering if NSSet could deal with the
fact that there wasn't an entry in one array that is in the other array.
Example:
The user has open Safari, Firefox, and Mail
The allowed applications array states that they can have open Safari,
Firefox, and Microsoft Entourage
The application ignores this fact (since the user is not using stuff that is
not in the other array)
The application would have run an if statement if the user was using
something that was not in the "okay" list
Sincerely,
Pierce Freeman
--
Pierce Freeman
email@hidden
On 11/28/08 9:28 PM, "Adam R. Maxwell" <email@hidden> wrote:
>
> On Nov 28, 2008, at 9:21 PM, Pierce Freeman wrote:
>
>> Thanks for the help, and for the link. Just wondering though, how
>> could I
>> tell it to run a script if they were not equal, and if the open list
>> is
>> lacking some of the ones in the okay list?
>
> How could you tell /what/ to run a script? If you want to launch
> applications programmatically, look at the docs for NSWorkspace. If
> you want to run a script, look at NSAppleScript or NSTask. Either
> way, the documentation and list archives will help you out.
>
_______________________________________________
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