> On Mar 6, 2017, at 7:05 PM, Daryle Walker wrote:
>
>
>> On Mar 6, 2017, at 4:58 PM, Daryle Walker wrote:
>>
>> The docs fo “NSDocumentController.reopenDocument(for: withContentsOf:
>> display: completionHandler:)” mention it’s for app restore. It ultimately
>> calls “NSDocument.init(for: w
Envoyé de mon smartphone BlackBerry 10.
Message d'origine
De: cocoa-dev-requ...@lists.apple.com
Envoyé: lundi 6 mars 2017 14:36
À: cocoa-dev@lists.apple.com
Répondre à: cocoa-dev@lists.apple.com
Objet: Cocoa-dev Digest, Vol 14, Issue 78
Send Cocoa-dev mailing list submissions to
cocoa-dev@l
> On Mar 6, 2017, at 3:45 PM, davel...@mac.com wrote:
>
> If I had the time and could easily do that, I would but pairing my app down
> to just the minimal parts would be time consuming.
Please at least file the bug report, even if you can’t include a reproducible
case. It’s very important tha
> On Mar 6, 2017, at 4:58 PM, Daryle Walker wrote:
>
> The docs fo “NSDocumentController.reopenDocument(for: withContentsOf:
> display: completionHandler:)” mention it’s for app restore. It ultimately
> calls “NSDocument.init(for: withContentsOf: ofType:)”, which mentions
> autosaved document
> On Mar 6, 2017, at 5:10 PM, David Duncan wrote:
>
>>
>> On Mar 6, 2017, at 2:05 PM, davel...@mac.com wrote:
>>
>>>
>>> On Mar 6, 2017, at 12:37 PM, Chris Ridd wrote:
>>>
>>>
On 6 Mar 2017, at 13:28, davel...@mac.com wrote:
I have an iOS app (Attendance2) written in Object
> On Mar 6, 2017, at 1:43 PM, Julie Porter wrote:
>
> I was surprised that there seems to be no wrapper class to NSTextView to do
> simple character cursor positioning equivalent to the Unix nCurses library.
A word processor isn’t the same thing as a terminal. They have very different
data mo
> On 6 Mar 2017, at 21:43, Julie Porter wrote:
>
> I am looking for something much simpler along the lines of
>
> textmoveto(3,4)
> displaytext(Hello World)
>
This is probably not what you were thinking of but it does provide for
positional layout to a pdf view though not an NSTextView..
It
On Mar 6, 2017, at 13:58 , Daryle Walker wrote:
>
> The docs fo “NSDocumentController.reopenDocument(for: withContentsOf:
> display: completionHandler:)” mention it’s for app restore.
> Do I have to restrict these methods for their documented purposes?
I think you do have to be careful, in the
> On Mar 6, 2017, at 2:05 PM, davel...@mac.com wrote:
>
>>
>> On Mar 6, 2017, at 12:37 PM, Chris Ridd wrote:
>>
>>
>>> On 6 Mar 2017, at 13:28, davel...@mac.com wrote:
>>>
>>> I have an iOS app (Attendance2) written in Objective-C. One of my users
>>> upgraded to the public 10.3 iOS beta an
NSTextView is a general purpose text rendering view; as such, since it works
with non-proportional fonts, there is no API for drawing characters at a
certain position. A solution may be to implement the text drawing manually
using some of NSString’s methods, specifically draw(at:withAttributes:)
On Mar 6, 2017, at 11:31 , Jeremy Hughes wrote:
>
> But I wonder if it is possible to bind directly to an array of NSNumbers
> without using a wrapper.
No, but the reason for that and for the trouble you’ve run into is a bit
complicated.
First of all, you are actually talking about bind *thro
> On Mar 6, 2017, at 12:37 PM, Chris Ridd wrote:
>
>
>> On 6 Mar 2017, at 13:28, davel...@mac.com wrote:
>>
>> I have an iOS app (Attendance2) written in Objective-C. One of my users
>> upgraded to the public 10.3 iOS beta and reported he could no longer open
>> his documents (I have a subcl
The docs fo “NSDocumentController.reopenDocument(for: withContentsOf: display:
completionHandler:)” mention it’s for app restore. It ultimately calls
“NSDocument.init(for: withContentsOf: ofType:)”, which mentions autosaved
documents. Do I have to restrict these methods for their documented purp
It has been a while since I asked anything here. Most of the scripting I
do is in PostScript using the ghostscript interpreter.
Occasionally I convert my postscript code to Objective C/Quartz. This
works really well for graphical output as Quarts drawing is just
postscript backward.
I now ha
> On 6 Mar 2017, at 17:34, Jeremy Hughes wrote:
>
> It all works now.
Actually, it works as far as the text field displays “Multiple” (placeholder)
for multiple values, but it doesn’t work when I set a value in the text field.
In that case I get:
Error setting value for key path selection.sel
> On 6 Mar 2017, at 13:28, davel...@mac.com wrote:
>
> I have an iOS app (Attendance2) written in Objective-C. One of my users
> upgraded to the public 10.3 iOS beta and reported he could no longer open his
> documents (I have a subclass of UIManagedDocument so they are Core Data files
> store
Bingo and thanks!
I had already found the checkbox for “Selects All When Setting Content"
The missing piece of the jigsaw was using “selection" as the Controller Key and
“self" as the Model Key Path.
It all works now.
Jeremy
--
> On 6 Mar 2017, at 17:12, Mike Abdullah wrote:
>
> Yep, you’r
Yep, you’re very close. An array controller is required indeed, it’s the one
responsible for vending out NSMultipleValuesMarker.
From your earlier message, you’re now seeing an exception or similar:
Cannot create number from object <_NSControllerObjectProxy: 0x600070b0> of
class _NSControlle
> On 6 Mar 2017, at 14:30, Jonathan Mitchell wrote:
>
> Sounds like NSValueTransformer is in fact what you need.
> It can take in your NSArray ref and spit out a single NSString that the
> NSTextField binding can live with.
I think I must be missing something obvious.
The value of an NSTextFie
On Mar 6, 2017, at 3:41 AM, Gerriet M. Denkmann wrote:
>
> I am trying to get bounding rects in a TextView:
>
> NSRange glyphRange = [ layoutManager glyphRangeForCharacterRange:
> someCharRange
>
> actua
Sounds like NSValueTransformer is in fact what you need.
It can take in your NSArray ref and spit out a single NSString that the
NSTextField binding can live with.
Defining NSValueTransformer subclass for every binding can be a pain.
So I use a block approach. This has the big advantage that you
> From what I understand of your example, you’re not “binding” anything in a
> Cocoa sense.
In the case of the single value, the text field is set up via the Bindings pane
of Interface Builder so that “Value" says “Bind to File’s Owner” with a model
key path of self.value. (And “value" is decla
I have an iOS app (Attendance2) written in Objective-C. One of my users
upgraded to the public 10.3 iOS beta and reported he could no longer open his
documents (I have a subclass of UIManagedDocument so they are Core Data files
stored in the package/directory format that UIManagedDocument uses).
From what I understand of your example, you’re not “binding” anything in a
Cocoa sense.
What you is an NSArrayController. Bind your text field to the array controller.
Supply the array controller with content, and have it derive the selected
value, be it single or multiple.
> On 6 Mar 2017, at
Hi,
This seems like an elementary question.
I’d like to bind an NSTextField to an array of numerical values, so that the
text field will either display a single value if the values are identical or
will display a multiple values marker if the values are different.
Using Swift, I can bind a tex
> On 5 Mar 2017, at 10:35 pm, Kyle Sluder wrote:
>
> On Fri, Mar 3, 2017, at 08:39 AM, Mark Allan wrote:
>> Hi all,
>>
>> I've got an NSWindow which has an NSToolbar added programmatically. The
>> window does not use a shared title/toolbar. I now want to add a little
>> bit of text/button to t
macOS 12.3, Xcode Version 8.2.1 (8C1002).
I am trying to get bounding rects in a TextView:
NSRange glyphRange =[ layoutManager glyphRangeForCharacterRange:
someCharRange
actualCharacterRange:
27 matches
Mail list logo