Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2016-09

NSTextStorage.paragraphs

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

https://developer.apple.com/reference/appkit/nstextstorage/1525943-paragraphs?language=objc

It seams to be a simple NSArray, or isn't it?

But is a property. I guess that every property can be mapped to a set<property> and a <property> set of functions, although I am not sure. So something like this:

function paragraphs: NSArray; message 'paragraphs';

I am just wondering why it isn't added in the default bindings and how to add it myself.

thanks,

Felipe Monteiro de Carvalho
Ryan Joseph
to Felipe Monteiro de Carvalho

I don’t know where that’s declared and I can’t find it in NSTextStorage.h for the 10.12 SDK even. Confusing...

it should be:

function paragraphs: NSArray; message 'paragraphs’;

like you said because it’s “copy” there is no setter but if there were it would be:

procedure setParagraphs (value: NSArray); message ‘setParagraphs:’;

That format is followed for all properties and how they are parsed when they do exist in headers.

Show quoted text 23 lines
On Sep 27, 2016, at 3:26 PM, Felipe Monteiro de Carvalho wrote: Hello, https://developer.apple.com/reference/appkit/nstextstorage/1525943-paragraphs?language=objc It seams to be a simple NSArray, or isn't it? But is a property. I guess that every property can be mapped to a set<property> and a <property> set of functions, although I am not sure. So something like this: function paragraphs: NSArray; message 'paragraphs'; I am just wondering why it isn't added in the default bindings and how to add it myself. thanks, -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Regards,
Ryan Joseph