Re: Unnecessary Boolean Warning

2011-08-04 Thread Sander Stoks
One important difference for instance is that if you write if (a() b()), both a() and b() will always be executed, while if you write if (a() b()), b() will be executed only if a() is true. The C language doesn't make any guarantees about that. While this optimisation is to be expected,

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread Conrad Shultz
Full disclosure: I don't use iAd, so this is based on WWDC recollection and doc lookup. The Test Advertisement I believe only displays when you are testing during development. Users will never see it. Keep the banner view hidden until you receive a bannerViewDidLoadAd: message in the ad

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread Sasikumar JP
Cornad, I guess, Test Advertisement displays even your region App store does not support iAD. I have seen many application in my device displays Test Advertisement, as iAD not supported in my region. I agree with your approach,only if the delegate method(bannerViewDidLoadAd:) is not getting

Re: Long delay of NSPopUpButton first click

2011-08-04 Thread Rimas M.
Drawing item titles into image and caching them for later use works nice. But I have noticed unacceptable side effect. Normally, when menu is displayed you can press any letter key, and menu will scroll to the first item, which title starts with that letter. In my case , NSMenuItems does not have

Re: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?

2011-08-04 Thread Daniel Vollmer
On 3 Aug 2011, at 19:20, Quincey Morris wrote: On Aug 3, 2011, at 05:41, Daniel Vollmer wrote: Now, what I'm trying to do is resize the tableview horizontally inside the scrollview *without* changing the size of the window itself[1]. I can do that easily enough by modifying its frame,

Re: Correct way to use contextInfo with ARC

2011-08-04 Thread Charles Srstka
On Aug 3, 2011, at 8:38 PM, Kevin Bracey wrote: Hi All, A case of me not grasping C or/and ARC;-) I'm trying to pass the NSMutableArray across the void to the didEndSelector so I can access it if the user clicks ok. /snippits NSMutableArray *someInfo = [NSArray arrayWithObjects:@made

CFStringCreateWithBytes and Endianness

2011-08-04 Thread Andreas Grosam
Hi All, I want to create a CFString using function CFStringCreateWithBytes. CFStringRef CFStringCreateWithBytes ( CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation ); I suspect, the encoding parameter refers to

Re: CFStringCreateWithBytes and Endianness

2011-08-04 Thread Fritz Anderson
On 4 Aug 2011, at 6:49 AM, Andreas Grosam wrote: I want to create a CFString using function CFStringCreateWithBytes. CFStringRef CFStringCreateWithBytes ( CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation );

Question about sending to PHP from Obj-C

2011-08-04 Thread Eric E. Dolecki
I have a little script sitting locally on my Mac (webserver). http://eric.domain.com/iOS_Log/logger.php: ? $myFile = yabba.txt; $fh = fopen($myFile,'a') or die(can't open file); $query = $_GET[string]; $stringData = $query.\n; fwrite($fh,$stringData); fclose($fh); ? I am simply trying to send

Re: Telling Auto Save, No, I'm busy now

2011-08-04 Thread Jerry Krinock
On 2011 Aug 01, at 08:14, Kevin Perry wrote: Canceling an autosave when -autosavingIsImplicitlyCancellable returns NO will cause problems with file coordination. Thank you, Kevin. I believe you and Jens on this. Indeed, when I close a document window, its document receives a

Re: Question about sending to PHP from Obj-C

2011-08-04 Thread Joe Wollard
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html%23//apple_ref/occ/instm/NSString/writeToURL:atomically:encoding:error: I'd guess that you could create an NSURL object with the full GET string, then write an empty

Re: Telling Auto Save, No, I'm busy now

2011-08-04 Thread Ken Thomases
On Aug 4, 2011, at 8:54 AM, Jerry Krinock wrote: I'm getting a crash if I begin some operations and then hit the 'close' button on the window while the operations are in progress… I take the four parameters I receive in saveToURL:ofType:forSaveOperation:completionHandler: and put them

Re: Question about sending to PHP from Obj-C

2011-08-04 Thread Keary Suska
On Aug 4, 2011, at 7:52 AM, Eric E. Dolecki wrote: I have a little script sitting locally on my Mac (webserver). http://eric.domain.com/iOS_Log/logger.php: ? $myFile = yabba.txt; $fh = fopen($myFile,'a') or die(can't open file); $query = $_GET[string]; $stringData = $query.\n;

Re: Telling Auto Save, No, I'm busy now

2011-08-04 Thread Jerry Krinock
On 2011 Aug 04, at 07:53, Ken Thomases wrote: On Aug 4, 2011, at 8:54 AM, Jerry Krinock wrote: I'm getting a crash if I begin some operations and then hit the 'close' button on the window while the operations are in progress… I take the four parameters I receive in

Re: Telling Auto Save, No, I'm busy now

2011-08-04 Thread Kevin Perry
What Ken said. Also, it might be more convenient to use NSBlockOperation or -addOperationWithBlock so the function parameters (including the completion handler) are all captured correctly for you automatically. It's a lot more convenient than stashing things in an NSDictionary. Finally, I

Menu Item Key Equivalent

2011-08-04 Thread koko
I have set the key equivalent for a menu item to A not cmd-A just plain A. I have other key equivalents set to numbers 0 , 1 , 3. If I hit 0, 1 or 3 the menu action method is called. If I hit A the menu action is not called. Where am I wrong? -koko

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread Conrad Shultz
Wow, if that's really the behavior then I'd say you should definitely file a bug. Not only should users never see debug/test junk, but it would be ridiculous for you to have to hard code region support... without an API how would you handle addition or removal of a region? You shouldn't have

Symbol not found: _OBJC_CLASS_$_NSURL

2011-08-04 Thread koko
My App has run on this users machine for quite some time now. I just did a new build changing nothing related to NSURL. Now when this user runs the app she gets this message: Dyld Error Message: Symbol not found: _OBJC_CLASS_$_NSURL Referenced from: /Applications/Convert It

Re: Symbol not found: _OBJC_CLASS_$_NSURL

2011-08-04 Thread Jean-Daniel Dupas
Le 4 août 2011 à 18:46, koko a écrit : My App has run on this users machine for quite some time now. I just did a new build changing nothing related to NSURL. Now when this user runs the app she gets this message: Dyld Error Message: Symbol not found: _OBJC_CLASS_$_NSURL Referenced

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread Howard Siegel
Haven't yet ventured in to iAd territory and don't know any of the data objects involved, so could be off in left field here. Since you will always get the -bannerViewDidLoadAd: delegate callback, even for the test ad, would it be possible to look inside the ad data to see if it is the test

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread David Duncan
If you find that your application is displaying the test ad on a non-development device after deploying to the App Store, then file a bug. The App Store build of your application should not be seeing the test ad on consumer devices. If you ran the App Store version of your application on a

Re: [iOS] Block animation kills performance

2011-08-04 Thread Matt Neuburg
On Sun, 31 Jul 2011 16:20:48 -0700, Rick Mann rm...@latencyzero.com said: Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the following code. If I use the block style, overall performance of the app suffers greatly (the UI becomes

Re: Unnecessary Boolean Warning

2011-08-04 Thread Boyd Collier
At the risk of offending contributors to this list, whose knowledge and helpfulness I greatly respect, may I suggest that this thread has gone on long enough and that competing opinions on this topic would be better aired on some other list? Boyd___

Re: Menu Item Key Equivalent

2011-08-04 Thread Kyle Sluder
On Thu, Aug 4, 2011 at 9:17 AM, koko k...@highrolls.net wrote: I have set the key equivalent for a menu item to  A not cmd-A just plain A. I have other key equivalents set to numbers 0 , 1 , 3. If I hit 0, 1 or 3 the menu action method is called. If I hit A the menu action is not called.

Re: finding my UIViewController

2011-08-04 Thread Matt Neuburg
On Thu, 04 Aug 2011 00:07:40 +0800, Roland King r...@rols.org said: Is there any way to find, given a UIView, what the closest presenting UIViewController is? Walk the responder chain until you come to a UIViewController? UIResponder* r = self; while (![r isKindOfClass:

Re: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?

2011-08-04 Thread Quincey Morris
On Aug 4, 2011, at 03:12, Daniel Vollmer wrote: On 3 Aug 2011, at 19:20, Quincey Morris wrote: By modifying the frame of what? You should be changing the scroll view frame, but you make it sound like you're changing the table view frame. The frame of the tableview. I want the scrollview

Re: [iOS] Block animation kills performance

2011-08-04 Thread Rick Mann
Thanks! On Aug 4, 2011, at 11:02 , Matt Neuburg wrote: On Sun, 31 Jul 2011 16:20:48 -0700, Rick Mann rm...@latencyzero.com said: Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the following code. If I use the block style, overall

Re: UITableViewController, with table view not the root of its nib?

2011-08-04 Thread Matt Neuburg
On Wed, 03 Aug 2011 13:49:10 -0700, Jens Alfke j...@mooseyard.com said: As far as I can tell, UITableViewController only works when the table is the root of the nib That's basically right. The docs are very clear on this: you must not use UITableViewController unless the table view *is* the

view:(QTMovieView *)view willDisplayImage:

2011-08-04 Thread julius
Hi, I've been looking for a way to draw on top of a QT movie whose display dimensions the user can vary using the window's resize handle(?) while it is running. I have previously stepped through the individual frames but the result was jerky. I obtained a smoother result by first converting

Re: view:(QTMovieView *)view willDisplayImage:

2011-08-04 Thread Mike Abdullah
Have you tried putting both the movie view, and a custom overlay inside of a layer-backed view? The more traditional route I think is to add a child window for the overlay, keeping its size/placement in sync with the parent window Sent from my iPad On 4 Aug 2011, at 08:13 PM, julius

Re: Symbol not found: _OBJC_CLASS_$_NSURL

2011-08-04 Thread koko
Thanks ! Now I remember reading about this somewhere ... NSURL moving from one framework to another. -koko On Aug 4, 2011, at 10:59 AM, Jean-Daniel Dupas wrote: Le 4 août 2011 à 18:46, koko a écrit : My App has run on this users machine for quite some time now. I just did a new

Re: view:(QTMovieView *)view willDisplayImage:

2011-08-04 Thread julius
On 4 Aug 2011, at 20:25, Mike Abdullah wrote: Have you tried putting both the movie view, and a custom overlay inside of a layer-backed view? The more traditional route I think is to add a child window for the overlay, keeping its size/placement in sync with the parent window Hi Mike

Re: Menu Item Key Equivalent

2011-08-04 Thread koko
Is not cmd-A and A different? Why would cmd-A need to be removed? -koko On Aug 4, 2011, at 12:18 PM, Kyle Sluder wrote: On Thu, Aug 4, 2011 at 9:17 AM, koko k...@highrolls.net wrote: I have set the key equivalent for a menu item to A not cmd-A just plain A. I have other key equivalents

Re: Menu Item Key Equivalent

2011-08-04 Thread Kyle Sluder
On Thu, Aug 4, 2011 at 1:06 PM, koko k...@highrolls.net wrote: Is not cmd-A and A different? Why would cmd-A need to be removed? Oh, I misread. Is this even supported? The key equivalent machinery might not dispatch non-modified characters to menus… --Kyle Sluder

CoreData I/O error for database: no such table

2011-08-04 Thread Nick Zitzmann
I tried searching around and found one other person who had the same problem[1], but no one followed up with a good solution for existing databases. I have an entity with a many-to-many relationship to itself, called parents and children. And when I take a database that was made by an

Re: Menu Item Key Equivalent

2011-08-04 Thread koko
The reason I have tried is that in the same menu I use 0,1,3,6 without cmd modifier and they work just fine. FYI This is a a Zoom Menu A = zoom all S = zoom selected 0 = zoom to hoop 1 = zoom 1:1 3 = zoom 3:1 6 = zoom 6:1 On Aug 4, 2011, at 2:18 PM, Kyle Sluder wrote: On Thu, Aug 4, 2011

Core Data Concurrency Issues

2011-08-04 Thread Jeff Kelley
I’m having some issues with concurrency with Core Data. I create an object that has a to-many relationship with another object (which in turn has a to-one reciprocal relationship with the first object), then dispatch_async onto a private queue. In that queue, I use a separate managed object

Re: Correct way to use contextInfo with ARC

2011-08-04 Thread Ron Hunsinger
On Aug 3, 2011, at 6:38 PM, Kevin Bracey wrote: NSMutableArray *someInfo = [NSArray arrayWithObjects:@made , @it, @across,. nil]; Did you really want to create an NSArray (non-mutable) and then pass it off as an NSMutableArray? Since you mentioned ARC, I'm surprised the compiler didn't

Re: Core Data Concurrency Issues

2011-08-04 Thread Heath Borders
A managed object context needs to be used and created from the same thread. Create and use childContext in a single dispatchAsync block. -Heath On Aug 4, 2011 5:32 PM, Jeff Kelley slauncha...@gmail.com wrote: I’m having some issues with concurrency with Core Data. I create an object that has a