July 2011
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

March 06, 2003
Lame Cocoa bugs.

Try this in a Cocoa text editor that supports multiple undos. ProjectBuilder and TextEdit are both examples.

Open a read/write file with lots of important text in your editor (make a backup first). Select all the text in the file then press option i. Press delete. Try to undo. Try to revert to saved. Both should do nothing but present you with a blank window. If you close the file without saving, then reopen it, all the text will return.

David says, "Cocoa-Easiest way to share bugs across multiple applications." Of course, I had to clean that up for content.

Update: it appears "Revert to Saved" does work in TextEdit which might be another bug altogether. I mean, why enabled it if the file hasn't changed? Even though there is nothing displayed, the file is not dirty.

 Posted by rosyna at 05:50 PM | Comments (6) | TrackBack (0)
Related:
Comments

Don't make it sound so bad. You only had to correct my horrible spelling!

Posted by: Rincewind on March 6, 2003 6:00 PM

damn... that IS bad!!

Posted by: seven5 on March 6, 2003 6:11 PM

Lame Rosyna...

Works fine in Text Edit to Revert to Saved. Don't know what your problem is ;-P

Posted by: autoxr on March 6, 2003 7:27 PM

Er... I just tried it in TextEdit, and while undo wouldn't work, revert to saved worked perfectly fine.

Posted by: Quobobo on March 6, 2003 8:17 PM

Well, Revert didn't work in Project Builder =p. Guess they have different logic for the Revert command =).

Posted by: Rincewind on March 6, 2003 8:32 PM

En este artículo de una serie de artículos de bellas e interesantes de cada lector donde habla acerca de los errores de cacao Lame. Realmente es un artículo maravilloso y gracias al escritor

Posted by: العاب طبخ on July 27, 2011 10:06 PM