Weird warning
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