NSInvocationOperation error

aphuk <[email protected]> Thu, 2 Dec 2010 23:04:58 -0800 (PST)
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
--===============0338554784==
Content-Type: multipart/alternative; 
	boundary="----=_Part_26072_22504349.1291359898099"

------=_Part_26072_22504349.1291359898099
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi, I am new to Objective-C and GNUstep so my question might be a little
basic but please help me out since I am stuck.

We are trying to create an instance of a NSInvocationOperation and put it in
the NSOperationQueue as given below

NSInvocationOperation* putOp = [[[NSInvocationOperation alloc]
initWithTarget:self selector:@selector(put)
                                                           object:[NSNumber
numberWithInt:5]] autorelease];

But on compilation, I get the below error :

source/Test.m:5: error: 'NSInvocationOperation' undeclared (first use in
this function)

What am I missing here?
-- 
View this message in context: http://old.nabble.com/NSInvocationOperation-error-tp30365267p30365267.html
Sent from the GNUstep - Help mailing list archive at Nabble.com.

------=_Part_26072_22504349.1291359898099
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi, I am new to Objective-C and GNUstep so my question might be a little basic but please help me out since I am stuck.

We are trying to create an instance of a NSInvocationOperation and put it in the NSOperationQueue as given below

<i>NSInvocationOperation* putOp = [[[NSInvocationOperation alloc] initWithTarget:self selector:@selector(put)
                                                           object:[NSNumber numberWithInt:5]] autorelease];</i>

But on compilation, I get the below error :

<i>source/Test.m:5: error: 'NSInvocationOperation' undeclared (first use in this function)</i>

What am I missing here?
<br><hr align="left" width="300">
View this message in context: <a href="http://old.nabble.com/NSInvocationOperation-error-tp30365267p30365267.html">NSInvocationOperation error</a><br>
Sent from the <a href="http://old.nabble.com/GNUstep---Help-f1885.html">GNUstep - Help mailing list archive</a> at Nabble.com.<br>

------=_Part_26072_22504349.1291359898099--



--===============0338554784==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Help-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnustep

--===============0338554784==--