code_junkie

MVC architecture question for Mac application

Nov 12th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. - (void) notifyContentHasChanged:(NSInteger) block {
  2. NSString *str;
  3. str = [NSString stringWithFormat:@"Block Written Successfully: %dn", block];
  4. [data insertText:str];
  5. }
  6.  
  7. Controller * c = [[Controller alloc] init];
  8. while (USB_SUCCESS(status)){
  9. DfuBlockCnt++;
  10. printf("nBlocks Written Successfully: %d",DfuBlockCnt);
  11. [c notifyContentHasChanged:DfuBlockCnt];
  12. }
Add Comment
Please, Sign In to add comment