FROM : Douglas Davidson
DATE : Fri Jun 16 20:21:10 2006
On Jun 16, 2006, at 11:14 AM, Jerry Krinock wrote:
> We're making an application that stores several user "tasks".
> These tasks
> are not documents; they will be continuously and silently stored in a
> database in ~/Library/Application Support.
>
> One of each task's attributes is a user-editable script; a
> scrollable view
> of text which may be 5-100 lines. This view should:
>
> - scroll vertically when needed.
> - accept "return" and "tab" characters without using "opt" key.
> - give me a notification or delegate message upon completion of
> each "edit":
> (contiguous typing, cut operation, paste operation, etc.), like the
> editor
> in Xcode. Upon receiving this, I shall end an undo grouping and
> (unlike
> Xcode) silently save their work.
>
Sounds like you want to use NSTextView, but NSTextView automatically
handles undo; you don't have to manage it. You can get notification
of various changes as the text view's delegate, and choose when to
save the document.
Douglas Davidson
DATE : Fri Jun 16 20:21:10 2006
On Jun 16, 2006, at 11:14 AM, Jerry Krinock wrote:
> We're making an application that stores several user "tasks".
> These tasks
> are not documents; they will be continuously and silently stored in a
> database in ~/Library/Application Support.
>
> One of each task's attributes is a user-editable script; a
> scrollable view
> of text which may be 5-100 lines. This view should:
>
> - scroll vertically when needed.
> - accept "return" and "tab" characters without using "opt" key.
> - give me a notification or delegate message upon completion of
> each "edit":
> (contiguous typing, cut operation, paste operation, etc.), like the
> editor
> in Xcode. Upon receiving this, I shall end an undo grouping and
> (unlike
> Xcode) silently save their work.
>
Sounds like you want to use NSTextView, but NSTextView automatically
handles undo; you don't have to manage it. You can get notification
of various changes as the text view's delegate, and choose when to
save the document.
Douglas Davidson
| Related mails | Author | Date |
|---|---|---|
| Jerry Krinock | Jun 16, 20:14 | |
| Douglas Davidson | Jun 16, 20:21 | |
| Jerry Krinock | Jun 16, 20:38 | |
| Jerry Krinock | Jun 16, 20:42 |






Cocoa mail archive

