I have decided to use the FileManager built in with Xcode for the checking and coping of files.
Will this code work correctly? I ask here because I haven't gotten that far in the gui to test it and I took a break from that frustration to work on the behind the sceens.
I also have this for the next button that will open the new window and close the current window. However the interface building will only let me have one window action for the button though:
What did I do wrong on the new window and will this prvent me from calling another sub that will check the checkboxes and placing them in an array?
and is the following coded correctly:
Will this code work correctly? I ask here because I haven't gotten that far in the gui to test it and I took a break from that frustration to work on the behind the sceens.
Code:
NSString *source = @"/Library/Printers/PPDs/Contents/Resources/HP DesignJet 1055CM PS3.gz";
NSString *tmpsource = @"/tmp/HP DesignJet 1055CM PS3.gz";
dvrchk = [[NSFileManager defaultManager] fileExistsAtPath:source];
if (dvrchk == NO)
{
[fileManager copyPath:tmpsource toPath:@"/Library/Printers/PPDs/Contents/Resources/" handler:nil];
}
I also have this for the next button that will open the new window and close the current window. However the interface building will only let me have one window action for the button though:
Code:
- (IBAction)NextButton:(ID)sender {
[prnSelector performClose:self];
[prnOverview orderFront:self];
}
What did I do wrong on the new window and will this prvent me from calling another sub that will check the checkboxes and placing them in an array?
and is the following coded correctly:
Code:
if([checkboxname isEqualToString:@"Printer1"] == YES) {
printerarray[i] = Printer1;
} else if{
the other 17 checkboxes
}