Re: localization nib vs. xib in release build

2011-11-04 Thread Andreas Mayer
Am 04.11.2011 um 00:31 schrieb Alexander Reichstadt: > What's unexpected are two things: > - my app still launches in English > - the English.lproj contains the nib file I localized as e.g. MainMenu.nib, > the German.lproj however still contains a MainMenu.xib Make sure there is no MainMenu.nib

Re: Adventures in core-data, iCloud, and sandboxing

2011-11-04 Thread Mike Abdullah
On 4 Nov 2011, at 01:01, Roland King wrote: > > > > >> So, can I conclude from this that iCloud and core-data only works with SQL >> store? The WWDC video hints at this, but was not explicit. >> > > Not so. I have a core data app running using icloud and an XML store. This is > ios by the

Re: Adventures in core-data, iCloud, and sandboxing

2011-11-04 Thread Martin Hewitson
Sorry, perhaps I wasn't explicit. This is all on OS X, not iOS. Martin On Nov 4, 2011, at 12:39 PM, Mike Abdullah wrote: > > On 4 Nov 2011, at 01:01, Roland King wrote: > >> >> >> >> >>> So, can I conclude from this that iCloud and core-data only works with SQL >>> store? The WWDC video h

How to highlight the current line in NSTextView?

2011-11-04 Thread Nick
Hello Basically the question is about getting the NSRange of the line of NSTextView where the text input cursor is currently in. Word wraps are considered as legal 'new lines' - only one line should actually be highlighted. How could I do this (get an NSRange of a single line)? Thank you _

Re: Adventures in core-data, iCloud, and sandboxing

2011-11-04 Thread Roland King
On Nov 4, 2011, at 7:39 PM, Mike Abdullah wrote: > > On 4 Nov 2011, at 01:01, Roland King wrote: > >> >> >> >> >>> So, can I conclude from this that iCloud and core-data only works with SQL >>> store? The WWDC video hints at this, but was not explicit. >>> >> >> Not so. I have a core dat

Re: Adventures in core-data, iCloud, and sandboxing

2011-11-04 Thread Roland King
On Nov 4, 2011, at 1:41 PM, Martin Hewitson wrote: > > On 4, Nov, 2011, at 02:01 AM, Roland King wrote: > >> >> >> >> >>> So, can I conclude from this that iCloud and core-data only works with SQL >>> store? The WWDC video hints at this, but was not explicit. >>> >> >> Not so. I have a c

Re: How to highlight the current line in NSTextView?

2011-11-04 Thread Douglas Davidson
The NSLayoutManager will tell you. Try taking a look at the conceptual documentation and some of the sample code for NSLayoutManager, and let me know if you have any problems. Douglas Davidson On Nov 4, 2011, at 6:19 AM, Nick wrote: > Hello > Basically the question is about getting the NSR

Re: Adventures in core-data, iCloud, and sandboxing

2011-11-04 Thread Martin Hewitson
Roland, thanks for the description. That's useful to know. But now I seem to have broken the iCloud syncing. Is there a correct way to 'reset' the cloud for testing purposes? I tried deleting the app container under 'Mobile Documents'. First on one machine (machine A), which resulted in that ma

Re: How to highlight the current line in NSTextView?

2011-11-04 Thread Martin Hewitson
Here's some code that I've been using in an NSTextView subclass. It may be of some use. Martin - (void) drawViewBackgroundInRect:(NSRect)rect { [super drawViewBackgroundInRect:rect]; NSRange sel = [self selectedRange]; NSString *str = [self string]; if (sel.location <= [str length]) {

Re: Adventures in core-data, iCloud, and sandboxing

2011-11-04 Thread Martin Hewitson
On 4, Nov, 2011, at 03:06 PM, Roland King wrote: > > On Nov 4, 2011, at 1:41 PM, Martin Hewitson wrote: > >> >> On 4, Nov, 2011, at 02:01 AM, Roland King wrote: >> >>> >>> >>> >>> So, can I conclude from this that iCloud and core-data only works with SQL store? The WWDC video h

[Q] loadView doesn't return?

2011-11-04 Thread JongAm Park
Hello, I tried to use AV Foundation's playback capability. So, by following AV Foundation Programming Guideline, it wrote codes for Mac. ( The document is written for iOS. ) Also, I looked up "View Controller" sample codes and "AnimatedTableView". What is strange is that it doesn't return after

Re: Core Data loading faulted object?

2011-11-04 Thread Mike Abdullah
On 4 Nov 2011, at 00:29, Rick Mann wrote: > Mike, > > Did you have any speculation as to why this might be happening? Not especially, I mostly asked since it's an important detail which might prompt others. Have you any delete rules which are set to "No action"? _

Re: How to detect clicks outside of modal window?

2011-11-04 Thread David Riggle
Subclass NSApplication and override this method: - (NSEvent *)nextEventMatchingMask:(NSUInteger)mask untilDate:(NSDate *)expiration inMode:(NSString *)mode dequeue:(BOOL)deqFlag { NSEvent *event = [super nextEventMatchingMask:mask untilDate:expiration inMode:mode dequeue:deqFlag];

Re: [Q] loadView doesn't return?

2011-11-04 Thread JongAm Park
It turned out that it didn't like to instantiate an NSViewControl class in its xib. So, instead, I created it in the code and it made "loadView" returns. However, I still have some problems. Although audio is played, video is not played. So, I changed its view class for setting player like this

Re: Core Data loading faulted object?

2011-11-04 Thread Rick Mann
On Nov 4, 2011, at 11:33 , Mike Abdullah wrote: > > On 4 Nov 2011, at 00:29, Rick Mann wrote: > >> Mike, >> >> Did you have any speculation as to why this might be happening? > > Not especially, I mostly asked since it's an important detail which might > prompt others. I think I'm seeing th

Allocating too much memory kills my App rather than returning NULL

2011-11-04 Thread Don Quixote de la Mancha
My iOS App Warp Life is an implementation of the Cellular Automaton known as Conway's Game of Life: http://www.dulcineatech.com/life/ The game takes place on a square grid. Each square is known as a "Cell", with the Dead or Alive state of the Cell being indicated by a single bit to conserve m

Re: Allocating too much memory kills my App rather than returning NULL

2011-11-04 Thread Dave Zarzycki
You're tripping across a fundamental aspect of how virtual memory works. For example: what do you expect will happen if you do this on an iOS device (none of which have more than 512*1024*1024 bytes of memory)? void *x = malloc(1024*1024*1024); assert(x); The answer depends on w

Re: Allocating too much memory kills my App rather than returning NULL

2011-11-04 Thread Igor Mozolevsky
On 5 November 2011 02:38, Dave Zarzycki wrote: > You're tripping across a fundamental aspect of how virtual memory works. [snip] Also, watch what you're *really* allocating: % cat ./malloc_test.c #include #include #include int main(int c, char **v) { const size_t size[] = {2, 33, 1025, 4

Re: Why does ARC retain method arguments even with full optimization?

2011-11-04 Thread Preston Sumner
On Nov 4, 2011, at 9:29 PM, Louis Romero wrote: > Don't you bypass an objc_msgSend, then? > Please tell me if I'm wrong. > -- > Louis Not if the functions end up sending the message through the runtime anyway, which is apparently the case.___ Cocoa-d

Re: Why does ARC retain method arguments even with full optimization?

2011-11-04 Thread Charles Srstka
On Nov 4, 2011, at 10:32 PM, Preston Sumner wrote: > Not if the functions end up sending the message through the runtime anyway, > which is apparently the case.___ Since part of the ARC spec requires objects to respond to -retain, -release, and -autor

Printing image represented by multiple tiles using Cocoa

2011-11-04 Thread Rahul Kesharwani
Hi I have a application that prints a image of a page of document on paper. The image is usually tiled and is provided as a set of 4 tiles representing the entire image. Till now this is being done using Carbon printing APIs . The set of functions calls and their order for printing a document i

Funky errors using MPMoviePlayerViewController

2011-11-04 Thread Gene Crucean
Can someone simplify what these errors mean? I get this when I click a button to play a video (download over internet on demand style). And possibly related... a problem I'm having is that my video plays with no audio. In fact the audio volume bar goes away completely on load. Any pointers are app

Printing multiple images each on a separate page using single NSPrintOperation

2011-11-04 Thread Rahul Kesharwani
Hi I have a application that intends to print raster image of each page of a document using NSPrintOperation. I am able to create a NSImage of a single page and print it using NSPrintOperation as follows -void printPage: (NSImage)nsImage { NSImageView *nsImageView = [[NSImageView alloc]

Re: Write to file Entitlement

2011-11-04 Thread Sam Rowlands
IIRC: Take a look at Temporary entitlements, there is one that will enable your application to read/write to the entire user area. The bit I don't understand is why it's marked as a temporary entitlement. Thanks for supporting our software and have a great week. Sam Rowlands s...@ohanaware.com

Re: Sandbox issues

2011-11-04 Thread Sam Rowlands
Depending on what you are doing with iPhoto, could it be accomplished with Apple Scripts? If so, there is a temporary entitlement that will allow you to send Apple Scripts to a specific application such as iPhoto. On Nov 1, 2011, at 2:06 AM, cocoa-dev-requ...@lists.apple.com wrote: >> This is p

How to get Notification of particular NSUserDefault keys (from the NSGlobalDomain)

2011-11-04 Thread Travis Griggs
I'm trying to create a language binding into the Cocoa environment. And my current problem is how to be able to determine when NSUserDefaults values have changed. I've read through all of these a couple of times: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Cl

Issue with IOHIDDeviceOpen and Exclusive Access

2011-11-04 Thread CoGe - Tamas Nagy
Hey list, i have a little problem with IOHIDDeviceOpen and Exclusive Access - when i call this method kIOHIDOptionsTypeSeizeDevice option, it returns kIOReturnSuccess, but i get no exlusive access. However, it works with the device manager, but i just need to have exclusive access for one speci

NSNumberFormatter erases invalid values on Lion with 10.6 SDK

2011-11-04 Thread George Nachman
I just moved to XCode 4, from the Mac OS 10.5 SDK to the 10.6 SDK, and from Snow Leopard to Lion. A behavior that changed is that entering invalid text into an NSTextField with an NSNumberFormatter causes the entire field's contents to be erased rather than disallowing the bogus character from bein

Re: Adventures in core-data, iCloud, and sandboxing

2011-11-04 Thread Roland King
That looks about right. I'm still messing about with non SQLite stores but what I'm assuming happens when you set the Ubiquitous* keys in the SQLite store options and migrate, that creates the log files you need for iCloud synching. I really need to go write a test app and mess with this stuff u

Moderator - List web back on line

2011-11-04 Thread Scott Anguish
I wanted to drop a quick note to the list, the web interface is back online. The biggest impact on many of you is that moderated messages can now be approved. I just went through a approved all those in the queue. Some of them might have already been solved, but better late than sorry. Hopefull

Re: Printing image represented by multiple tiles using Cocoa

2011-11-04 Thread Ken Thomases
On Oct 23, 2011, at 6:26 AM, Rahul Kesharwani wrote: > I have a application that prints a image of a page of document on paper. The > image is usually tiled and is provided as a set of 4 tiles representing the > entire image. Till now this is being done using Carbon printing APIs . The APIs you

Re: How to get Notification of particular NSUserDefault keys (from the NSGlobalDomain)

2011-11-04 Thread Ken Thomases
On Nov 2, 2011, at 1:47 PM, Travis Griggs wrote: > I'm trying to create a language binding into the Cocoa environment. And my > current problem is how to be able to determine when NSUserDefaults values > have changed. > [...] I just want to know when a user changes a value found in the > NSGlo

automaticallyNotifiesObserversOf

2011-11-04 Thread Roland King
I was just turning off automatic KVO for one single property on my class and went to implement +(BOOL)automaticallyNotifiesObserversForKey:(NSString*)key. When I started to type, Xcode gave me a long list of possibles as it often does .. at which point I realized there was one for each named pro

Re: automaticallyNotifiesObserversOf

2011-11-04 Thread Quincey Morris
On Nov 4, 2011, at 22:51 , Roland King wrote: > Then I went and looked in the documentation, couldn't find a reference to it > anywhere in iOS, eventually found a note in the 10.5 Leopard release notes > that that pattern had been introduced, that's the only documentation I can > find on it any