Pointer problem/ implicit conversion


hi
having issue method.
code:
- initwithin:(nsstring *)infile out:(nsstring *)outfile{  	self = [super init];  	lastchord = nil;  	delta = 256;  	deltadivide = 4;      indata= [[nsfilehandle filehandleforreadingatpath:infile]availabledata] ;  //[color="blue"]first problem above line is[/color]: [color="red"]arc restrictions implicit conversion of objective c pointer 'char*' disallowed.[/color]  	        inlength = [indata length]);//2nd issue [color="red"]bad receiver type 'char*'[/color]        indata = [indata bytes];//3rd issue [color="red"]bad receiver type 'char*'[/color]  	pos = 0;  	self->outfile = outfile;  	track = [[nsmutabledata alloc] init];  	contents = [[nsmutabledata alloc] init];  	volume = 100;  	  	return self;  }  
the header is:
code:
#import <uikit/uikit.h>    @interface midiviewcontroller : uiviewcontroller{     char *indata;    nsinteger inlength, pos;  nsstring *outfile;  nsmutabledata *track, *contents;  nsstring *lastchord;  int delta, deltadivide;  int stepoffset, lastoffset;  int volume, lastvolume;  }  - initwithin:(nsstring *)infile out:(nsstring *)outfile;    - (void) writefile;  - (void) buildtrack;  - (void) writevartime:(int)value;  - (void) writechord:(nsstring *)chord atdelta:(int)delta;  - (void) closelastchord:(int)delta;  - (void) appendnote:(int)note state:(bool)on;  @end  
using ios 7.1 sdk , xcode 5.1
appreciated.
thanks
z
 

this code:
code:
@interface midiviewcontroller : uiviewcontroller{     char *indata;  
needs changed this:
code:
@interface midiviewcontroller : uiviewcontroller{     nsfilehandle *indata;  
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Carrier post Error specific

How to increase vRAM for HD3000 graphics

Carrier [Information] AT&T NEXT