Re: file done writing?

2011-04-12 Thread Uli Kusterer
On 11.04.2011, at 07:18, Gary L. Wade wrote: > You might find the > FSEvents mechanism something to consider if you're watching a dump folder > where the originator application is something you have no control over. > There are also very-Darwin-level mechanisms for seeing if a file is open, > but t

Re: Can an image be "rejected" by CALayer?

2011-04-12 Thread Gabriel Zachmann
> Assuming this is the entirety of the code, then as mentioned previously you > never set the bounds or frame of your layer. Well, I don't know what to say ... I've just rediscovered that I actually do set the bounds: if ( orientation >= 5 ) // swap width & height

Re: Not sure about autorelease pools in NSOperations

2011-04-12 Thread G S
Thanks for that thorough explanation, Wim. In most of my operations I'm just calling C++ objects, so I doubted that I need the pool. So far I'm pleased with operations and queues. Pretty cool and not hard to use. Not too portable though, I guess... Gavin ___

Localized.strings is being ignored

2011-04-12 Thread Michael Crawford
I'm trying to localize an app that I have currently selling on the Mac app-store. I have taken the following steps: 1. Renamed my existing localization directory from "English.lproj" to "en.lproj" 2. Updated the existing localization settings for my main nib file from English to en 3. Created a

Re: Localized.strings is being ignored

2011-04-12 Thread Dave DeLong
I'm pretty sure the file should be called "Localizable.strings", not "Localized.strings". Dave Sent from my iPhone On Apr 12, 2011, at 8:23 AM, Michael Crawford wrote: > I'm trying to localize an app that I have currently selling on the Mac > app-store. I have taken the following steps: >

Re: file done writing?

2011-04-12 Thread Rainer Standke
Thanks for pointing these out, Uli. Are those classes youhave on github newer than, let's say, UKKQueue on you website at http://zathras.de/angelweb/sourcecode.htm? Rainer On Apr 12, 2011, at 0:44, Uli Kusterer wrote: > On 11.04.2011, at 07:18, Gary L. Wade wrote: >> You might find the >> FSEv

Re: Localized.strings is being ignored

2011-04-12 Thread Michael Crawford
Three missing semi colons, in fact. Thanks. -Michael On Apr 12, 2011, at 11:36 AM, Roy Lovejoy wrote: > You've got at least one typo in your string file. That's all it takes. > > Look for a missing semi colon. > > Handcrafted on my iPhone > > On Apr 12, 2011, at 8:23 AM, Michael Crawford

Re: Localized.strings is being ignored

2011-04-12 Thread Dave DeLong
The best way to discover these sorts of errors is to run "plutil /path/to/file.plist". It uses the default option (-lint), which checks the file for syntax errors. This works because a .strings file is really just a plist in the old school non-xml format. If it finds an error, it'll tell you:

Re: Localized.strings is being ignored

2011-04-12 Thread Joar Wingfors
Xcode should warn you about such errors, should it not? Please file a bug report / enhancement request via the Apple Bug Reporter: Thanks! j o a r On 12 apr 2011, at 09.32, Dave DeLong wrote: > The best way to discover these sorts of errors i

PDFKit Frustrations

2011-04-12 Thread Patrick William Walker
I've been trying to create a subclass of PDFView in order to load a PDF file (a standardized form) so that some of the fields can be automated. The problem that I have been having is that instance variables will not seem draw in the view at all although static strings will. I have verified that

Re: OCMock in Xcode 4

2011-04-12 Thread qvacua
Well, I tried the release version of OCMock and also I compiled it from the source as 64bit framework because my project is currently compiled only in 64bit mode. The same error msg both times... Best. On Mon, Apr 11, 2011 at 2:16 PM, Reaves, Timothy wrote: > I believe that typically means that

Re: PDFKit Frustrations

2011-04-12 Thread Kyle Sluder
On Tue, Apr 12, 2011 at 12:40 PM, Patrick William Walker wrote: >    NSString *test = @"Test"; > >    // This shows up >    [test drawAtPoint: NSMakePoint(75, 550) >       withAttributes: attr]; > >    // This does not. >    [official.name drawAtPoint: NSMakePoint(375, 550) >                 withA

Displaying a custom sheet

2011-04-12 Thread Luc Van Bogaert
Hi, I'm having some trouble to correctly display a custom sheet. Here's the relevant code I'm using. This code is run from the application delegate. "newGameLevelSheet" is a IBOutlet property defined with the "assign" modifier. if (!self.newGameLevelSheet) [NSBundle loadNibN

Re: Displaying a custom sheet

2011-04-12 Thread Alvaro Costa Neto
Hi, Check if the "Visible At Launch" checkbox for your sheet is unchecked in Interface Builder. If this checkbox is checked, your sheet will appear floating in the middle of the screen on the first run, instead of below the window title bar as intended. Best regards, Alvaro Costa Neto Em 12/04

Re: Displaying a custom sheet

2011-04-12 Thread Laurent Daudelin
On Apr 12, 2011, at 14:25, Luc Van Bogaert wrote: > Hi, > > I'm having some trouble to correctly display a custom sheet. Here's the > relevant code I'm using. This code is run from the application delegate. > "newGameLevelSheet" is a IBOutlet property defined with the "assign" modifier. > >

Re: PDFKit Frustrations

2011-04-12 Thread Kyle Sluder
Bringing this back on-list. On Tue, Apr 12, 2011 at 5:28 PM, Patrick William Walker wrote: > Oh, official.name is NSString and attr is just a NSDictionary. The values might matter. Especially that they're non-nil. --Kyle Sluder > On 2011-04-12, at 5:09 PM, Kyle Sluder wrote: > >> On Tue, Apr

newbie window questions

2011-04-12 Thread Artemiy Pavlov
Hi all! I have previously written plugins with custom views, but I am now working on a standalone app and have a couple very basic questions: - I would like to disable my app from maximizing on the screen. - When the app's window is closed, I would like the app to quit and not stay active in