iOS 6.0 SDK UIApplicationInvalidInterfaceOrientation

2013-02-03 Thread Mazzaroth M.
I am getting this error in a universal iOS 6.0 sdk app: 2013-02-03 23:41:57.078 scrappling[20350:c07] *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'preferredInterfaceOrientationForPresentation must return a supported interface orientation!' Th

Re: new to Cocoa/Objective-c: many points of confusion

2013-02-03 Thread Jens Alfke
On Jan 21, 2013, at 10:10 PM, Alex Hall wrote: > *delegates: my understanding is that these take the place of subclasses > (though why this is useful is beyond me), overriding methods they are > designed to handle rather than letting the base class take those methods. They don’t take the plac

Re: NSOperation communicating progress?

2013-02-03 Thread Kyle Sluder
On Sun, Feb 3, 2013, at 05:09 PM, Todd Heberlein wrote: > I've added an NSInvocationOperation object to process a large file > asynchronously. Everything mostly works fine, but I am trying to add a > way for this NSInvocationOperation object to communicate its progress > back to the main thread (e.

NSOperation communicating progress?

2013-02-03 Thread Todd Heberlein
I've added an NSInvocationOperation object to process a large file asynchronously. Everything mostly works fine, but I am trying to add a way for this NSInvocationOperation object to communicate its progress back to the main thread (e.g., setting a percent of the file processed). I have an NSPr

Re: Interface Builder button appearance

2013-02-03 Thread Andy Lee
Can you post a screen shot and/or the nib file? --Andy On Feb 3, 2013, at 3:47 PM, Boyd Collier wrote: > Hi All, > > I have a nib with a Matrix of one column and 3 rows; in this there are 3 > buttons cells of type Switch and Style Check. All are enabled. Recently I > noticed that the squar

Re: -mouseDragged: invoked when it should not (and without mouseDown)

2013-02-03 Thread Graham Cox
On 25/01/2013, at 6:30 AM, Tae Won Ha wrote: > Hi, guys. I need some help in event handling. I have a custom view embedded > in a scroll view which is embedded in a split view. The window has got a > toolbar. When I move the window down by dragging the toolbar, very often the > -mouseDragged:

Interface Builder button appearance

2013-02-03 Thread Boyd Collier
Hi All, I have a nib with a Matrix of one column and 3 rows; in this there are 3 buttons cells of type Switch and Style Check. All are enabled. Recently I noticed that the square of the middle button is slightly darker that the other 2. Using Interface Builder's inspectors, I've tried everyt

Re: Binding problem with core data

2013-02-03 Thread Jim Geist
On Feb 3, 2013, at 10:06 AM, Keary Suska wrote: > On Feb 2, 2013, at 6:25 PM, Velocityboy wrote: > >> Finally got a chance to do some more debugging on this. >> >> I looked at the referenced object and figured out why the fault, at least. I >> had tried to bind the subcategory column's Content

Localization not working based on region with en-US

2013-02-03 Thread Kevin Bracey
I found that Localisation of Nibs AND Help impossible to get to work together. The Documentation is also very old and misleading. With the App Stores being multilingual, I would hope this would be quick and simple, but it is not. New Zealand/Australia is bad enough, but South Africa is nightmare

Re: Binding problem with core data

2013-02-03 Thread Keary Suska
On Feb 2, 2013, at 6:25 PM, Velocityboy wrote: > Finally got a chance to do some more debugging on this. > > I looked at the referenced object and figured out why the fault, at least. I > had tried to bind the subcategory column's Content to category.subcategories, > which resolved to a relatio

Re: Localization not working based on region with en-US, en-UK and en lproj

2013-02-03 Thread Gary L. Wade
To add British English to your list of preferred languages for succeedingly launched apps to choose from, launch System Preferences, go to the Language & Text panel, choose the Language tab, and drag British English to the top of the list. If British English is not in the list, click the Edit Li

Re: Localization not working based on region with en-US, en-UK and en lproj

2013-02-03 Thread Arun
How can we make the application to use locale based localization? The apple documentation tells that first locale based folders are searched. On Feb 3, 2013 9:45 PM, "Douglas Davidson" wrote: > The localization used is determined by matching the AppleLanguages list > against the localizations ava

Re: Localization not working based on region with en-US, en-UK and en lproj

2013-02-03 Thread Douglas Davidson
The localization used is determined by matching the AppleLanguages list against the localizations available in the application's main bundle. In this case, the top entry in AppleLanguages is en, so that is the localization that will be used. Douglas Davidson On Feb 3, 2013, at 6:56 AM, Arun

Re: Cocoa-dev Digest, Vol 10, Issue 76

2013-02-03 Thread gweston
From the compiler standpoint though, IBAction is equivalent to "void", so let's just assume the method in question reads like the following, and we'll break it down: -(void)someMethod: (id)inSender; ... 3. someMethod: this is the name of the method   Care needs to be take here. The name of the

Re: new to Cocoa/Objective-c: many points of confusion

2013-02-03 Thread Andy Lee
Hi Alex, Lots of basic topics here that I love to talk about. I'll just focus on delegates, at least for now. On Jan 21, 2013, at 10:10 PM, Alex Hall wrote: > *delegates: my understanding is that these take the place of subclasses > (though why this is useful is beyond me), overriding methods

Re: NSTableView and performClickOnCellAtColumn - cannot make it work

2013-02-03 Thread Michael Babin
On Jan 26, 2013, at 4:08 AM, Ivan Ostres wrote: > I am trying to use performClickOnCellAtColumn on NSTableView to put cell in > editing mode (like when you create a new folder in Finder). If I click on the > cell I can change it content but using performClickOnCellAtColumn nothing > happens. T

Re: MIDIClientCreate fail

2013-02-03 Thread Michael Babin
On Feb 2, 2013, at 11:20 PM, Ben wrote: > (Sorry for the repost, I forgot to change the title) > > Hi, I'm mighty confused by the following code. When I run this in one project > it works fine, when I run it in another one it crashes. > Both projects appear identical in terms of frameworks Core

Re: Localization not working based on region with en-US, en-UK and en lproj

2013-02-03 Thread Arun
Yes i am launching the the application between changes to the region. Not sure what is Application's preference domain? How can we set/unset this? The output of the defaults command as below. *$ defaults read com.yourcompany.Hello AppleLanguages* 2013-02-03 20:22:10.317 defaults[4084:903] The do

Re: new to Cocoa/Objective-c: many points of confusion

2013-02-03 Thread Dave Keck
> *delegates: my understanding is that these take the place of subclasses > (though why this is useful is beyond me), overriding methods they are > designed to handle rather than letting the base class take those methods. > However, I not only don't see why this is so great, but I don't understa

Re: Localization not working based on region with en-US, en-UK and en lproj

2013-02-03 Thread Keith Duncan
> My project has > 1. en_GB.lproj > 2. en_US.lproj > 3. en.lproj > Directories. Each time even if I change region setting, always strings from > en.lproj directory is displayed. > Are you relaunching your application between changes to the region? Does your application’s preference domain have a

NSDocument packages and incremental writing using NSFileWrapper

2013-02-03 Thread Thomas Zoechling
Hello, My NSDocument based app uses packages with the following structure: - document.package +- metadata.plist (small, mutable) +- large0.file (large, immutable) +- large1.file (large, immutable) +- large2.file (large, immutable) While the metadata.plist file can change any time, all large file

NSTableView and performClickOnCellAtColumn - cannot make it work

2013-02-03 Thread Ivan Ostres
Hi group, I am trying to use performClickOnCellAtColumn on NSTableView to put cell in editing mode (like when you create a new folder in Finder). If I click on the cell I can change it content but using performClickOnCellAtColumn nothing happens. This is the code I am using: - (IBAction)some

-mouseDragged: invoked when it should not (and without mouseDown)

2013-02-03 Thread Tae Won Ha
Hi, guys. I need some help in event handling. I have a custom view embedded in a scroll view which is embedded in a split view. The window has got a toolbar. When I move the window down by dragging the toolbar, very often the -mouseDragged: of my custom view gets invoked. Curiously enough, it d

NSOutlineView -reloadItem: vs insertItemsAtIndexes:inParent:withAnimation:

2013-02-03 Thread Chris Devereux
Hi there, I've been having intermittent unexplained out of bounds errors when inserting new items into an NSOutlineView. Here's a snippet from my controller's update method (triggered by a KVO notification) that should explains the sort of problem I've been having. This class it's from is the del

new to Cocoa/Objective-c: many points of confusion

2013-02-03 Thread Alex Hall
Hello all, First, I will quickly give my background. I graduated two years ago with a computer science degree and a math minor; my education focused mostly on Java, Python, and some web languages, with bits of several other languages thrown in from time to time. I understand the concepts of mode

Re: book for n00b

2013-02-03 Thread Andrew Coleman
If author is not an issue, I find "Programming in Objective-C" written by Stephen G. Kochan to be a fantastic book, covering tons of topics, and wouldn't be too tough for a novice to dive into. Hope this helps!! Thanks, Andrew Coleman On Jan 16, 2013, at 13:14, Scott Ribe wrote: > I know som

Re: NSString and file system Re: AppleScript in Sandboxed App

2013-02-03 Thread Daniel Höpfl
Hello, On Wed, 16 Jan 2013 17:12:15 +, jonat...@mugginsoft.com wrote: On 16 Jan 2013, at 15:50, Fritz Anderson wrote: On 16 Jan 2013, at 3:52 AM, "jonat...@mugginsoft.com" wrote: Py_SetProgramName((char *)[[scriptRunner launchPath] UTF8String]); If a char* is destined for t

Re: What's the difference between [NSOperationQueue currentQueue] and performSelectorOnMainThread (iOS platform)

2013-02-03 Thread Mike Abdullah
On 3 Feb 2013, at 07:41, 尹佳冀 wrote: > Hi All > > Does anyone can know what the difference between [NSOperationQueue > currentQueue] and > performSelectorOnMainThread, If I do some work use operation > on [NSOperationQueue mainQueue], the UI will not hang up, but if i > use performSelectorOnMain

Re: Core Data & NSPersistentDocument & Concurrency

2013-02-03 Thread Mike Abdullah
On 3 Feb 2013, at 01:04, Eric Gorr wrote: > > On Feb 1, 2013, at 6:59 PM, Mike Abdullah wrote: > >> On 1 Feb 2013, at 20:13, mail...@ericgorr.net wrote: >> >>> I've got a NSPersistentDocument. I have read the Concurrency with Core Data >>> in the Core Data Programming Guide and am following

Re: NSScrollView Problems

2013-02-03 Thread livinginlosangeles
Ok, I just checked my code and I found exactly that. I had a conditional statement that wasn't balanced with a [NSGraphicsContext restoreGraphicsState]. I should of immediately thought of that as too many things were not operating correctly. The biggest problem was that I didn't see these error