I am trying to translate this:
NSXPCInterface *b = [NSXPCInterface
interfaceWithProtocol:@protocol(Xpc_CommonProtocol)];
to Swift.
This compiles (and runs) as expected:
var dummy : AnyObject?
if let protoDummi = dummy as? Xpc_CommonProtocol
{
println(dummy DOES implement
Does NSPointerArray support zeroing weak references under ARC?
The test below seems to indicate that it does - though this is the sort of
thing I often get wrong.
Note that a NULL survives -compact.
Presumably the method is free to not compact in trivial cases - or is there
another
That was an interesting question. I've used one under ARC and it does, but I
thought .. let's check with the documentation.
Well the documentation says nothing about ARC at all until you get to the end
where the Revision History table is and that says ..
2013-08-08 Noted that
On Aug 8, 2014, at 23:48 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
let b = NSXPCInterface( protocol: Xpc_CommonProtocol )
When I try it, the “protocol” is syntax highlighted as a keyword, so I suspect
that’s the first problem. Taking a cue from the declaration of NSXPCInterface
On 9 Aug 2014, at 16:20, Quincey Morris quinceymor...@rivergatesoftware.com
wrote:
On Aug 8, 2014, at 23:48 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
let b = NSXPCInterface( protocol: Xpc_CommonProtocol )
When I try it, the “protocol” is syntax highlighted as a keyword, so I
On Aug 9, 2014, at 01:46 , Roland King r...@rols.org wrote:
I do sometimes wish the revision history was a bit more verbose, or at least
there was a way to see the various revisions of the document to see what
actually changed.
The 2011-09-16 revision note was correct, because at that time
On Aug 9, 2014, at 09:48 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Are bindings supposed to work in Swift?
I haven’t played with them at all, yet, but they have to work (eventually, even
if not yet), or interoperability couldn’t work. But …
1. Don’t forget to mark your observable
7 aug 2014 kl. 22:28 skrev Peter Edberg pedb...@apple.com:
This is intentional. The character is ‘−’ U+2212 MINUS SIGN with UTF-8
representation 0xE2 0x88 0x92. Many locales prefer the proper Unicode minus
sign for negative numbers, instead of using U+002D HYPHEN-MINUS.
Seems like the
I have been tasked with getting outlines of all True Type fonts on a user Mac.
I am just beginning my research and first Google results were unsatisfying.
I am now going to NSFont but thought stopping here first might save sometime.
TIA!
-rags
___
You can use NSFontManager to get all fonts.
On Aug 9, 2014, at 4:30 PM, Raglan T. Tiger r...@crusaderrabbit.net wrote:
I have been tasked with getting outlines of all True Type fonts on a user Mac.
I am just beginning my research and first Google results were unsatisfying.
I am now
I need to clarify …
I would like to get bezier outlines of true type fonts …
- rags
On Aug 9, 2014, at 3:47 PM, Gerd Knops gerti-cocoa...@bitart.com wrote:
You can use NSFontManager to get all fonts.
On Aug 9, 2014, at 4:30 PM, Raglan T. Tiger r...@crusaderrabbit.net wrote:
I have
On Aug 9, 2014, at 2:55 PM, Raglan T. Tiger r...@crusaderrabbit.net wrote:
I would like to get bezier outlines of true type fonts …
Specifically only TrueType fonts? What about OpenType or PostScript fonts?
I think your best bet is NSBezierPath, which has methods
-
On Aug 9, 2014, at 4:14 PM, Jens Alfke j...@mooseyard.com wrote:
Just be aware of the licensing restrictions of the fonts. Obviously you have
the right to render text with any font legally installed on your computer
If only. Some font licenses don’t even let you use them in fillable PDF
On 10 Aug 2014, at 4:35 am, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
1. Don’t forget to mark your observable methods and properties as ‘dynamic’
(new in the latest beta).
Now that I think about it, though, I hate this “enhancement”. It turns
something that’s
On Aug 9, 2014, at 18:13 , Roland King r...@rols.org wrote:
If this is where we are then it would be handy to have the runtime throw, or
at least log, if you attempt to KVO a Swift property which isn't dynamic.
Yes, though I expect (hope?) that there is eventually something better than
This is quite helpful and I thank you all.
I will find out about the licensing issue, but we are not changing or making a
derivative.
With the outline we can apply our embroidery digitizing engine to get a font
that can be sewn. I know of competitors who do this with no licensing issues.
But
One of the things that bugs me about text on OS X is that it's laid out from
the top edge of a bounding box, not based off a baseline. In particular,
CATextLayer lays out text from its top edge, but provides no way to find out
the baseline that results. This makes laying out layers with text
17 matches
Mail list logo