Skip to content

About addNote: vs. newFromFileReference: #66

@Ducasse

Description

@Ducasse

I would like to understand why do we have

addNoteFromFileReference: which has a complex logic in terms of metadata and addNoteNamed:

newFromFileReference: aFileReference

	^ self new
		  folderReference: aFileReference parent;
		  fileName: aFileReference basename;
		  contents: aFileReference contents;
		  creationDate: aFileReference creationTime;
		  modificationDate: aFileReference modificationTime;
		  yourself
addNoteNamed: aString
	"Add a new empty note with title aString to the receiver's notes."

	| note |
	note := NTNote content: aString.
	self addNote: note.
	^ note

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions