Re: splitting CJK text into "words"

2012-09-26 Thread Markus Spoettl
On 9/26/12 11:12 PM, Martin Wierschin wrote: I'm trying to split CJK text using the kind of word boundaries detected by -[NSAttributedString doubleClickAtIndex:]. That method does the job correctly, but only if the system preferences have the Word Break mode set to Japanese. I need to ensure this

Re: NSWindowController and nib in framework

2012-09-26 Thread Quincey Morris
On Sep 26, 2012, at 18:10 , Jeff Johnson wrote: > Is your app distributed as a zip file? > > I had a similar bizarre issue with NSBundle a number of months ago, and it > turned out that the problem occurred when the app was unzipped using The > Unarchiver. Unzipping with the built-in Archive

Re: NSWindowController and nib in framework

2012-09-26 Thread Jeff Johnson
On Sep 26, 2012, at 12:51 PM, Quincey Morris wrote: > On Sep 26, 2012, at 10:08 , Kyle Sluder wrote: > >> Can you log +[NSBundle allBundles] and/or use Instruments to see what file >> access Foundation is performing and what responses it's getting back? > > The difficulty is that this exceptio

Re: splitting CJK text into "words"

2012-09-26 Thread Martin Wierschin
>> I've tried a variety of locale identifiers (eg: "zh", "jp_JP", etc) but no >> joy. Am I missing something? > > Try "ja" for Japanese text, "zh-Hans" for Simplified Chinese text, "zh-Hant" > for Traditional Chinese text. Thanks for the idea Douglas, but I just gave all those locale identifier

Re: splitting CJK text into "words"

2012-09-26 Thread Douglas Davidson
On Sep 26, 2012, at 2:12 PM, Martin Wierschin wrote: > I've tried a variety of locale identifiers (eg: "zh", "jp_JP", etc) but no > joy. Am I missing something? Try "ja" for Japanese text, "zh-Hans" for Simplified Chinese text, "zh-Hant" for Traditional Chinese text. Douglas Davidson ___

Re: splitting CJK text into "words"

2012-09-26 Thread Martin Wierschin
>> I'm trying to split CJK text using the kind of word boundaries detected by >> -[NSAttributedString doubleClickAtIndex:]. That method does the job >> correctly, but only if the system preferences have the Word Break mode set >> to Japanese. I need to ensure this kind of word splitting independ

Re: splitting CJK text into "words"

2012-09-26 Thread Ken Thomases
On Sep 26, 2012, at 4:12 PM, Martin Wierschin wrote: > I'm trying to split CJK text using the kind of word boundaries detected by > -[NSAttributedString doubleClickAtIndex:]. That method does the job > correctly, but only if the system preferences have the Word Break mode set to > Japanese. I n

Re: How to calculate NSToolbar height in fullscreen mode

2012-09-26 Thread Lee Ann Rucker
On Sep 26, 2012, at 2:14 PM, Nava Carmon wrote: > > I don't use default NSApplicationPresentationOptions. An the requirement is > to leave the toolbar in place, since it has necessary functional buttons. I > tried to use willUseFullScreenContentSize, but you cannot change the size > there, be

Re: How to calculate NSToolbar height in fullscreen mode

2012-09-26 Thread Nava Carmon
I don't use default NSApplicationPresentationOptions. An the requirement is to leave the toolbar in place, since it has necessary functional buttons. I tried to use willUseFullScreenContentSize, but you cannot change the size there, because basically it's calculated properly by cocoa. The only

splitting CJK text into "words"

2012-09-26 Thread Martin Wierschin
Hello everyone, I'm trying to split CJK text using the kind of word boundaries detected by -[NSAttributedString doubleClickAtIndex:]. That method does the job correctly, but only if the system preferences have the Word Break mode set to Japanese. I need to ensure this kind of word splitting ind

Re: app developed for iPhone is compatible with iPad

2012-09-26 Thread Koen van der Drift
Session 305 of the 2010 WWDC developer videos discusses how to adapt an app for iPhone and iPad. - Koen. On Sep 26, 2012, at 4:43 AM, kiran kumar wrote: > Hi Everyone, > > I am new to iOS development. > > Is the app developed for iPhone is compatible with iPad / we need to take > care in c

Re: NSWindowController and nib in framework

2012-09-26 Thread Mike Abdullah
On 26 Sep 2012, at 17:37, Quincey Morris wrote: > On Sep 25, 2012, at 22:37 , Graham Cox wrote: > >> Is the app sandboxed? >> >> I ask because I've had reports of this same error from the odd user but have >> been unable to reproduce it so far. It's ONLY happening since we sandboxed >> tho

Re: NSWindowController and nib in framework

2012-09-26 Thread Quincey Morris
On Sep 26, 2012, at 10:08 , Kyle Sluder wrote: > Can you log +[NSBundle allBundles] and/or use Instruments to see what file > access Foundation is performing and what responses it's getting back? The difficulty is that this exception has never happened to me during development. By chance (mayb

Re: NSWindowController and nib in framework

2012-09-26 Thread Kyle Sluder
On Sep 26, 2012, at 9:37 AM, Quincey Morris wrote: > > It's as if there's a short asynchronous step in finding bundles, which leaves > a small timing window for failure that depends on the code order. I dunno. That would be really weird and unfortunate. Can you log +[NSBundle allBundles] and

Re: NSWindowController and nib in framework

2012-09-26 Thread Quincey Morris
On Sep 25, 2012, at 22:37 , Graham Cox wrote: > Is the app sandboxed? > > I ask because I've had reports of this same error from the odd user but have > been unable to reproduce it so far. It's ONLY happening since we sandboxed > though. No, the app has been around for a while and isn't sandb

Re: app developed for iPhone is compatible with iPad

2012-09-26 Thread David Duncan
On Sep 26, 2012, at 4:43 AM, kiran kumar wrote: > Is the app developed for iPhone is compatible with iPad / we need to take > care in code for window resizing etc? If you create an iPhone only application, then it will run on iPad in compatibility mode (centered on the screen with an option f

Re: nstableview without nsscrollview

2012-09-26 Thread zav
It is a view setting you can turn off in the IB. Sent from my Verizon Wireless BlackBerry -Original Message- From: Alfian Busyro Sender: cocoa-dev-bounces+zav=mac.com@lists.apple.comDate: Wed, 26 Sep 2012 13:55:10 To: Corbin Dunn Cc: Subject: Re: nstableview without nsscrollview Than

Re: drawGlyphsForGlyphRange layout issue

2012-09-26 Thread jonat...@mugginsoft.com
On 26 Sep 2012, at 02:08, Aki Inoue wrote: > >> 2. I thought the core text route would be more efficient. I have cached my >> CTLineRefs. Doesn't -drawWithRect:options:attributes: require instantiating >> an NSLayoutManager on each call? > We don't instantiate NSLayoutManager on each call. In

app developed for iPhone is compatible with iPad

2012-09-26 Thread kiran kumar
Hi Everyone, I am new to iOS development. Is the app developed for iPhone is compatible with iPad / we need to take care in code for window resizing etc? Regards, Kiran.K The information contained in this email and any attachments is confidential and may be