FROM : Andrew Farmer
DATE : Wed Aug 23 22:42:23 2006
On 23 Aug 06, at 13:24, Thaddeus Cooper wrote:
> Hi all --
>
> I have a method in my app delegate that is registering two value
> transformers, the first registration compiles fine, but I get a
> warning on the second registration that says:
>
> warning: passing argument 1 of 'setValueTransformer:forName:' from
> distinct Objective-C type
<snip>
> + (void) initialize {
> ValuePlusOne *valuePlusOneTransformer;
> ColumnNameToIcon *columnNameToIconTransformer;
>
> valuePlusOneTransformer = [[[ValuePlusOne alloc] init] autorelease];
> [NSValueTransformer setValueTransformer:valuePlusOneTransformer
> forName:@"valuePlusOne"]; // this works
>
> columnNameToIconTransformer = [[[ColumnNameToIcon alloc] init]
> autorelease];
> [NSValueTransformer
> setValueTransformer:columnNameToIconTransformer
> forName:@"columnNameToIcon"]; // warning here
> }
Are you sure ColumnNameToIcon is a subclass of NSValueTransformer?
DATE : Wed Aug 23 22:42:23 2006
On 23 Aug 06, at 13:24, Thaddeus Cooper wrote:
> Hi all --
>
> I have a method in my app delegate that is registering two value
> transformers, the first registration compiles fine, but I get a
> warning on the second registration that says:
>
> warning: passing argument 1 of 'setValueTransformer:forName:' from
> distinct Objective-C type
<snip>
> + (void) initialize {
> ValuePlusOne *valuePlusOneTransformer;
> ColumnNameToIcon *columnNameToIconTransformer;
>
> valuePlusOneTransformer = [[[ValuePlusOne alloc] init] autorelease];
> [NSValueTransformer setValueTransformer:valuePlusOneTransformer
> forName:@"valuePlusOne"]; // this works
>
> columnNameToIconTransformer = [[[ColumnNameToIcon alloc] init]
> autorelease];
> [NSValueTransformer
> setValueTransformer:columnNameToIconTransformer
> forName:@"columnNameToIcon"]; // warning here
> }
Are you sure ColumnNameToIcon is a subclass of NSValueTransformer?
| Related mails | Author | Date |
|---|---|---|
| Thaddeus Cooper | Aug 23, 22:24 | |
| Andrew Farmer | Aug 23, 22:42 | |
| Thaddeus Cooper | Aug 23, 22:50 |






Cocoa mail archive

