[Openmcl-devel] Puzzled by NextStep method naming conventions
    Ron Garret 
    ron at awun.net
       
    Thu Jan 17 17:04:58 PST 2008
    
    
  
This works:
? rep
#<NS-BITMAP-IMAGE-REP NSBitmapImageRep 0x10749c90 Size={639, 239}  
ColorSpace=NSCalibratedRGBColorSpace BPS=8 BPP=24 Pixels=639x239  
Alpha=NO Planar=NO Format=0 (#x10749C90)>
? (#/colorAtX:y: rep 10 10)
#<NS-COLOR NSCalibratedRGBColorSpace 0.611765 0.501961 0.454902 1  
(#x1082EC70)>
But this doesn't:
? (#/setColorAtX:y: rep (#/colorAtX:y: rep 0 0) 10 10)
 > Error: Undefined function NEXTSTEP-FUNCTIONS:|setColorAtX:y:|  
called with arguments (#<NS-BITMAP-IMAGE-REP NSBitmapImageRep  
0x10749c90 Size={639, 239} ColorSpace=NSCalibratedRGBColorSpace BPS=8  
BPP=24 Pixels=639x239 Alpha=NO Planar=NO Format=0 (#x10749C90)> #<NS- 
COLOR NSCalibratedRGBColorSpace 0.592157 0.486275 0.45098 1  
(#x1082A180)> 10 10) .
And neither does this:
? (#/setColor:AtX:y: rep (#/colorAtX:y: rep 0 0) 10 10)
 > Error: Undefined function NEXTSTEP-FUNCTIONS:|setColor:AtX:y:|  
called with arguments (#<NS-BITMAP-IMAGE-REP NSBitmapImageRep  
0x10749c90 Size={639, 239} ColorSpace=NSCalibratedRGBColorSpace BPS=8  
BPP=24 Pixels=639x239 Alpha=NO Planar=NO Format=0 (#x10749C90)> #<NS- 
COLOR NSCalibratedRGBColorSpace 0.592157 0.486275 0.45098 1  
(#x1081EDF0)> 10 10) .
It really seems like one of those ought to work.  Why don't they?
Thanks,
rg
    
    
More information about the Openmcl-devel
mailing list