• 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
Weird warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird warning


  • Subject: Weird warning
  • From: development2 <email@hidden>
  • Date: Thu, 4 Dec 2008 11:22:55 -0700

Hi,
I am getting some weird warnings that I can't figure out.


/Development/Contracting Code/iTask-iPhone/trunk/iTask/Classes/ iTaskAppController.m:103: warning: assignment from distinct Objective- C type
/Development/Contracting Code/iTask-iPhone/trunk/iTask/Classes/ iTaskAppController.m:98: warning: 'CalCalendarStore' may not respond to '-taskPredicateWithCalendars:'
/Development/Contracting Code/iTask-iPhone/trunk/iTask/Classes/ iTaskAppController.m:98: warning: (Messages without a matching method signature



And here is the actual code

NSPredicate *taskPredicate = [[CalCalendarStore defaultCalendarStore] taskPredicateWithCalendars:[[CalCalendarStore defaultCalendarStore] calendars]];



taskPredicateWithCalendars: is from the class CalCalendarStore so why is it saying 'CalCalendarStore' may not respond to '- taskPredicateWithCalendars:'


Here is the method declaration in the docs, From the class CalCalendarStore:


taskPredicateWithCalendars:
Returns an NSPredicate object that specifies tasks that belong to the specified calendars.


+ (NSPredicate *)taskPredicateWithCalendars:(NSArray *)calendars

Parameterscalendars
An array of CalCalendar objects that the tasks must belong to.

Return Value
An NSPredicate object that specifies tasks that belong to the specified calendars.


Availability
	• Available in Mac OS X v10.5 and later.
Declared InCalCalendarStore.h

Can anyone see what I am doing wrong. I just don't get this and of course if I try to debug this, it freezes on that line of code.

Thanks in advance.


_______________________________________________

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


  • Follow-Ups:
    • Re: Weird warning
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Help Menu <Please>
  • Next by Date: Re: Help Menu <Please>
  • Previous by thread: [NSButtonCell] How to ask for refresh when a window resigns from being the key window
  • Next by thread: Re: Weird warning
  • Index(es):
    • Date
    • Thread