NSParagraphStyle LineBreakMode

This is OSX app.


I have used for long NSParagraphStyle.LineBreakMode. Here, to specify a parameter with a default value in a finc call


truncating: NSParagraphStyle.LineBreakMode = .byWordWrapping


That worked without problem.


In a new project, I tried to reuse the same function.


But I now get an error:

'LineBreakMode' has been renamed to 'NSLineBreakMode'


Which is surprising, I thought the trend was to get rid of NS…


So I accept the proposal, but now the error is:

'NSLineBreakMode' is not a member type of 'NSParagraphStyle'


Cannot find any explanation in doc.

Accepted Reply

Probably a question of XCode version. I close the thread.

Replies

Probably a question of XCode version. I close the thread.