Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find color's change in a NSString (attributed)




On 20 févr. 06, at 18:12, Andrea Salomoni wrote:

Thank you for reply.
I found some problems with this code:

isColsedTo: method returns me a warning and about myColor in this case I can find only a specific color?
Or have I to alloc and initialize a new instance of NSColor?

As I wrote, isClosedTo: is not a method of the AppKit but of a category _I_ added to NSColor.


To look for multiple colors, you can change the code or run the loop once per color. This is just some code, not the perfect solution.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Find color's change in a NSString (attributed) (From: Andrea Salomoni <email@hidden>)
 >Re: Find color's change in a NSString (attributed) (From: Stephane Sudre <email@hidden>)
 >Re: Find color's change in a NSString (attributed) (From: Andrea Salomoni <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.