• 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
Re: Compiler warning - totally stumped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler warning - totally stumped


  • Subject: Re: Compiler warning - totally stumped
  • From: Ken Tozier <email@hidden>
  • Date: Sat, 3 May 2008 11:33:36 -0400

Here's the class interface where it's declared

@class PHPInvocation;

@interface LayoutDirectoryWatcher : NSObject
{
	NSString			*site,
						*layoutDirectory;

	NSURL				*scriptURL;
	PHPInvocation		*invocation;	// <- invocation declaration
	NSTimer				*timer;
	NSDictionary		*directoryAttributes;
	BOOL				initialized;
	PHPInvocation		*script;
}

// and here's the method where I initialize/invoke it

- (id) initLayoutDirectoryWatcher
 {
	if (self = [super init])
	{
		[self initPrefs];

		initialized				= NO;

// initialize (scriptURL is initialized inside 'initPrefs' from a prefs file)
invocation = [[PHPInvocation invocationWithURL: scriptURL] retain];


// invoke (compiler throws following error for invokeWithSelector line)
// warning: PHPInvocation may not respond to 'invokeWithSelector:arguments:'
layoutDirectory = [invocation invokeWithSelector: @"layout_plan_directory_for_site" arguments: site];


NSLog(@"layoutDirectory: %@", layoutDirectory);
directoryAttributes = [[[NSFileManager defaultManager] fileAttributesAtPath: layoutDirectory traverseLink: NO] retain];

[self startTimer];
}

return self;
}



On May 3, 2008, at 7:23 AM, Jean-Daniel Dupas wrote:

How is declared the "invocation" ivar that trigger the warning ?

Le 3 mai 08 à 12:10, Ken Tozier a écrit :

invocation


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Compiler warning - totally stumped
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Compiler warning - totally stumped (From: Ken Tozier <email@hidden>)
 >Re: Compiler warning - totally stumped (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Compiler warning - totally stumped
  • Next by Date: Re: Compiler warning - totally stumped
  • Previous by thread: Re: Compiler warning - totally stumped
  • Next by thread: Re: Compiler warning - totally stumped
  • Index(es):
    • Date
    • Thread