Any of the standard paragraph separators can be used (\n, \r, \r\n, Unicode
paragraph separator). Use the Unicode line separator character to start a new
line without a paragraph break. It is best to apply a paragraph style to an
entire paragraph; if that is not done, then the paragraph style at
Does anybody have any links to tutorials or example code for writing layout
managers for vertical text? (top left to bottom right oriented text, such as
Japanese)
If somebody already knows of open source classes out there, that's helpful too.
Thanks,
John
Hi,
I first asked this question on stackoverflow, so I'll include the link:
http://stackoverflow.com/questions/4404286/how-is-a-paragraph-defined-in-an-nsattributedstring
Here is the copied text:
I see that there is an attribute name (NSParagraphStyleAttributeName)
for applying paragraph styles
ok here's where I went with this .. that's a binary plist file representing a
keyed archive, you should be able to open it with plist but for some reason
when I do that I don't get one of the entries I expected (the $top dictionary
is empty instead of having a 'root' key in it), and I like looki
From my understanding, unless you are running on a 32bit CPU these days, then
by default, everything but the kernel on certain Mac models is 64bit.
I believe it may depend on EFI, my MacBook Pro 4,1 has a 64bit CPU and can be
told to boot with a 64bit kernel (hold 6 and 4 on boot), but defaults
On Dec 11, 2010, at 7:05 PM, BareFeetWare
wrote:
> 1. Apple Mail. If you reply to a messages containing multi-colored text, you
> can edit that text.
> 2. Pages
> 3. Textastic
> 4. HTML Edit
> 5. for i
> 6. Code Viewer 2
We wrote our own.
--Kyle Sluder_
On 12/12/2010, at 4:27 AM, Matt Neuburg wrote:
> NSAttributedString support is not "worthless" at all. Both CATextLayer and
> the Core Text drawing routines accept an NSAttributedString. With
> CATextLayer, displaying an attributed string is one line of code!
Actually, you're right. It's been a
Well, to answer my own question, you get cursorUpdate events when scrolling on
Snow Leopard, but apparently not on Leopard.
On 2010-12-04, at 2:10 AM, Dave Fernandes wrote:
> I'm just playing with this myself, and when using an NSTrackingArea, I find I
> get cursorUpdate: events when scrolling.
On Dec 11, 2010, at 10:31 PM, Scott Ribe wrote:
> On Dec 11, 2010, at 4:52 PM, WT wrote:
>
>> My understanding is that setting a style is useful when you want to output a
>> string from a given number or date, not when you want to read in a number or
>> date from an input string. How would I kn
On Dec 11, 2010, at 10:25 PM, Stephen J. Butler wrote:
> On Sat, Dec 11, 2010 at 5:58 PM, WT wrote:
>> [wrt NSNumberFormatter] However, setUsesGroupingSeparator:YES still has no
>> effect for me.
>>
>> May I send you (off-list) the test project?
>
> For those following along at home, this happ
On Dec 11, 2010, at 4:52 PM, WT wrote:
> My understanding is that setting a style is useful when you want to output a
> string from a given number or date, not when you want to read in a number or
> date from an input string. How would I know ahead of time what style the
> strings presented to
On Sat, Dec 11, 2010 at 5:58 PM, WT wrote:
> [wrt NSNumberFormatter] However, setUsesGroupingSeparator:YES still has no
> effect for me.
>
> May I send you (off-list) the test project?
For those following along at home, this happens to be an iOS project.
I did this and it seems to work for me:
On Dec 11, 2010, at 9:42 PM, Stephen J. Butler wrote:
> On Sat, Dec 11, 2010 at 5:37 PM, WT wrote:
>> thanks for replying. I tried it and it gives the exact same results as
>> before, that is, the presence of the group separator causes the number
>> formatter to return nil. Besides, there remai
On Dec 11, 2010, at 9:38 PM, Stephen J. Butler wrote:
> On Sat, Dec 11, 2010 at 5:14 PM, WT wrote:
>> All results are correct, except for the last two. "123.456,78" should result
>> in 123456.78 and 23/04/2010 should result in the appropriate NSDate object
>> for April 23, 2010.
>>
>> The loca
On Sat, Dec 11, 2010 at 5:37 PM, WT wrote:
> thanks for replying. I tried it and it gives the exact same results as
> before, that is, the presence of the group separator causes the number
> formatter to return nil. Besides, there remains the date formatter issue.
Forgive me for using FScript,
On Sat, Dec 11, 2010 at 5:14 PM, WT wrote:
> All results are correct, except for the last two. "123.456,78" should result
> in 123456.78 and 23/04/2010 should result in the appropriate NSDate object
> for April 23, 2010.
>
> The locale is NOT being ignored, since 12,34 and 123456,78 are parsed
On Dec 11, 2010, at 9:28 PM, Stephen J. Butler wrote:
> On Sat, Dec 11, 2010 at 5:14 PM, WT wrote:
>> All results are correct, except for the last two. "123.456,78" should result
>> in 123456.78 and 23/04/2010 should result in the appropriate NSDate object
>> for April 23, 2010.
>>
>> The loca
On Sat, Dec 11, 2010 at 5:14 PM, WT wrote:
> All results are correct, except for the last two. "123.456,78" should result
> in 123456.78 and 23/04/2010 should result in the appropriate NSDate object
> for April 23, 2010.
>
> The locale is NOT being ignored, since 12,34 and 123456,78 are parsed
Following a suggestion from another member of the list, I'm now using
NSNumberFormatter and NSDateFormatter (rather than NSScanner) to read some
numbers and dates from strings retrieved from a web service. The service has
its data formatted according to the pt_BR locale, which uses "." for group
On Sat, Dec 11, 2010 at 8:00 AM, eveningnick eveningnick
wrote:
> My OS is running in 32 bit mode:
> $ arch
> i386
In SL, even if the kernel is in 32bit mode the programs will prefer to
launch in 64bit.
> I tried to select in project settings "32-bit universal", "64-bit
> Intel", "Standard 32/64
Gustavo Pizano wrote:
Any way to improve even more performance?, when I have many many
BCItemView on the scene, (around 120+), it takes like 10 seconds
to save. :S
Measure where your code spends its time by running it in
Instruments.app and using the Time Profiler. Use the measurement
On Fri, 10 Dec 2010 12:43:48 +1100, BareFeetWare
said:
>3. iOS 3.2 and above state that they provides NSAttributedString support. You
>can fiddle around to get multiple colors in the objects, but there's still no
>way to actually display the colored text (which makes the NSAttributedString
>su
On Fri, 10 Dec 2010 11:22:16 +0530, Tharindu Madushanka
said:
>Hi,
>
>I would like to present my next view controller in a way that pushed in. But
>my first view controller is not a navigation controller.
It sounds like you're saying you want the very same animation you get from a
navigation co
interesting thing is that it works, if the project is created as a
Preference Pane, while the "Bundle" project (there is a recipe for
creating preference panes using "Bundle" xcode template) doesn't work
as needed. I matched two projects - one created as "Bundle" manually,
and another one generated
> I have discovered, that if I use only CA layers transformations (via
> setTransform:), I am getting the same rotated pixels when zooming in.
> The only way, which does what I want is:
> a) use core image filter to rotate layer (simple CIAffineTransform)
> b) use second CI filter to tell renderer
Hello
I am creating a system preferences applet (according to apple's
guide), but after installing (copying) its bundle into
/Library/PreferencePanes/, and clicking it (or selecting its icon in
System Preferences app), i always get the message from the subj.
My OS is running in 32 bit mode:
$ arch
On Dec 11, 2010, at 6:03 AM, Ron Fleckner wrote:
> Hi,
>
> sorry if I'm way off the mark here, but wouldn't the best thing to use be
> NSScanner *scanner = [NSScanner localizedScannerWithString:[sender
> stringValue]];? Then you don't have to worry about the specifics of number
> formatting i
Hello, this comes from a previous post i did, but IW as asking something else.
So im working with UIViews which draws an image ivar in the drawRect method.,
now the user manipulate the view by rotating and scaling, also the user puts
many more UIViews with different image ivar each, it can repe
On Dec 10, 2010, at 1:49 PM, Tharindu Madushanka wrote:
> Hi,
> Thanks.
>
> But. This works with two views appearing as pushed. But I would like to have
> animation for my next view controller.
>
> But with two view controllers when other view controller shown, how could we
> present that wit
that's a binary plist file representing a keyed archive, you should be able to
open it with plist but for some reason when I do that I don't get one of the
entries I expected (the $top dictionary is empty instead of having a 'root' key
in it), and I like looking at files in vi anyway so .. I con
On 11/12/2010, at 3:54 PM, Ken Thomases wrote:
> On Dec 10, 2010, at 9:38 PM, WT wrote:
>
>> thank you both for the very fast response.
>
> You're welcome.
>
>> Is that behavior of NSScanner documented anywhere? I read the docs but don't
>> remember coming across it. I'm a bit stunned. What's
31 matches
Mail list logo