Okay... That makes sense. :)

Thanks for your (and everyone else's) help.


Sincerely,

Pierce F


On 11/29/08 10:58 AM, "Ashley Clark" <[EMAIL PROTECTED]> wrote:

> On Nov 29, 2008, at 12:47 PM, Pierce Freeman wrote:
> 
>> NSMutableSet *openApplicationsSet = [NSSet
>> setWithArray:openApplications];
> 
> While openApplicationsSet is declared to be an NSMutableSet you are
> not creating one. Your assignment should be [NSMutableSet
> setWithArray:...]
> 
> 
>> NSSet *allowedApplicationsSet = [NSSet
>> setWithArray:applicationsAllowedMutableArray];
>> 
>> NSMutableSet *badApplicationsSet = [openApplicationsSet
>> minusSet:allowedApplicationsSet];
> 
> The minusSet: method doesn't return a new object. It mutates the
> receiver, in this case openApplicationsSet, by removing items it
> shares in common with the passed in set, allowedApplicationsSet.
> 
>> NSAlert * askToContinue = [NSAlert alertWithMessageText:@"Warning!"
>> defaultButton:@"Continue"
>> alternateButton:@"Quit"
>> otherButton:nil
>> informativeTextWithFormat:@"Quit [EMAIL PROTECTED]", badApplicationsSet];
> 
> 
> 
> Ashley


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to