• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange Warning in initialize method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange Warning in initialize method


  • Subject: Strange Warning in initialize method
  • From: Thaddeus Cooper <email@hidden>
  • Date: Wed, 23 Aug 2006 13:24:07 -0700

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

I've seen this kind of error when I forget to make an object a pointer or something silly like that, but in this case I can't figure out what's wrong even after spending a great deal of time messing around with it.

Any help would be appreciated.

Thanks very much.

--Thaddeus O. Cooper
(email@hidden)

------------------------------------- 8< Cut Here >8 --------------------------------------------

+ (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


}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Strange Warning in initialize method
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: RE: Newbie: Opening window?
  • Next by Date: Re: Strange Warning in initialize method
  • Previous by thread: RE: Newbie: Opening window?
  • Next by thread: Re: Strange Warning in initialize method
  • Index(es):
    • Date
    • Thread