Skip to Main Content
Mac OSX Developer's Guide
book

Mac OSX Developer's Guide

by Jesse Feiler
October 2001
Intermediate to advanced content levelIntermediate to advanced
594 pages
21h 44m
English
Morgan Kaufmann
Content preview from Mac OSX Developer's Guide
510 9 Chapter 23: Documents and Files
_diaryOwner = [dict objectForKey-diaryOwnerKey] ;
_diaryTitle = [dict objectForKey.diaryTitleKey];
entryDicts = [dict objectForKey-entriesListKey];
if (_entries)
{
[_entries removeAllObjects] ;
}
else
{
_entries = [NSMutableArray alloc] init]];
}
currentEntryIndex = -I ;
if (entryDicts) {
int i, c = [entryDicts count] ;
for (i=0; i< c; i++) {
[_entries addObject- (DiaryEntry*)
[ DiaryEntry
en t ryFr omPr oper tyLi s tRepr e sen tat i on-
[entryDicts objectAtIndex-i] ] ] ;
currentEntryIndex ++ ;
re turn di c t ;
Undo and Dirty Documents
If you use the default undo mechanism ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

OSX Mavericks Essentials

OSX Mavericks Essentials

Wiley
Beginning Mac OS® X Programming

Beginning Mac OS® X Programming

Michael Trent, Drew McCormack
Cocoa in a Nutshell

Cocoa in a Nutshell

Michael Beam, James Duncan Davidson
Cocoa Programming for OS X: The Big Nerd Ranch Guide

Cocoa Programming for OS X: The Big Nerd Ranch Guide

Aaron Hillegass, Adam Preble, Nate Chandler

Publisher Resources

ISBN: 9780122513411