Save animation to QuickTime movie?

2008-06-19 Thread Yung-Luen Lan
Hi, I want to make some slideshow program for myself which display photos with transition effect and extra text information on it, and save the slideshow into QuickTime movie. 1. Is Core Image the correct technology to use? I mean that I don't want to rewrite the common transition effect

Re: Save animation to QuickTime movie?

2008-06-20 Thread Yung-Luen Lan
Hi Rick, Thanks, it's a good suggestion, but not my case. The problem is, I have to batch convert thousands of slideshows. The text information is not just subtitle, I have to highlight different portion of text depend on time. For example, text in parenthesis need to be highlighted: 00:13

Cocoa Text System: How to determine the caret position?

2008-06-23 Thread Yung-Luen Lan
Hi, I'm writing my own text view because I need laying out text along arbitrary path and vertical text. Rendering text is good with Core Text. However, I don't know how to decide where should I draw the caret. The problem is, character and glyph is not 1-1 mapping. For example, two characters fi

Code Example: FunTextField

2008-09-01 Thread Yung-Luen Lan
FunTextField is provided as an example of NSTextInput protocol. Moreover, it also shows how to lay text along arbitrary path. (Thanks to Brad Cox's DrawKit.) Download: http://yllan.org/code/ What is FunTextField: http://yllan.org/blog/archives/285 My article on NSTextInput:

Re: Code Example: FunTextField

2008-09-01 Thread Yung-Luen Lan
Ouch... You're right! Regards, yllan On Mon, Sep 1, 2008 at 5:12 PM, Uli Kusterer [EMAIL PROTECTED] wrote: On 01.09.2008, at 10:23, Yung-Luen Lan wrote: (Thanks to Brad Cox's DrawKit.) That would be Graham Cox. Brad Cox is someone else entirely :-) Cheers, -- Uli Kusterer

Line height of drawWithRect:options: seems a bit messed up

2009-04-01 Thread Yung-Luen Lan
Hi, I have some code that draws attributed string to a given location using given fonts/sizes/styles with [NSAttributedString drawWithRect:options:]. However, I found that the string were not aways aligned to top on some fonts when I supply NSStringDrawingUsesLineFragmentOrigin option, which

Mock the internet

2010-11-08 Thread Yung-Luen Lan
Hi, I'm writing a framework for web API like flickr. However, I don't want my test failed depending on the server status. (And I don't want it hit the server every time I build my project.) Is there any easy way to fake the network layer? I don't think swizzle the NSURLConnection is enough

Re: Maths package for 128/256 bit integers?

2010-11-16 Thread Yung-Luen Lan
You may check Accelerate.framework. It utilized the SIMD for performance for up to 1024bit operands. http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man7/vBigNum.7.html Regards. yllan On Mon, Nov 15, 2010 at 7:14 AM, William Squires wsqui...@satx.rr.com wrote: I