Re: iOS app launching speed

2012-05-15 Thread Dave Camp
In my experience, this is usually localized to whatever you are doing in applicationDidFinishLaunching and the complexity of the main nib that is being loaded (and it's associated data, like graphics). Usually, getting your main nib down to just what you need and loading the rest later goes a

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

2011-11-09 Thread Dave Camp
On Nov 8, 2011, at 10:48 PM, Don Quixote de la Mancha wrote: On Tue, Nov 8, 2011 at 10:39 PM, Conrad Shultz con...@synthetiqsolutions.com wrote: And there's a bigger problem. That memory warning notification that you referenced in your first message is there to tell you that you need to

Re: Simulate touch event with cordinate?

2011-04-02 Thread Dave Camp
Since you are doing this in your own application, just get the data from your face tracking code and call your animation code directly. I don't think it's possible to create a UITouch with the public APIs. Dave On Apr 1, 2011, at 10:25 PM, Rikza Azriyan wrote: Thanks chase for your reply,

Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]

2011-03-09 Thread Dave Camp
I saw that assertion yesterday in a bit of code that was accidentally calling a MPMoviePlayerController method from a secondary thread. Dave On Mar 8, 2011, at 5:01 PM, Steve Christensen wrote: I'm seeing the above assertion in an app running on iOS 4.2.1. It then throws an

Re: Stupid png icons

2011-01-07 Thread Dave Camp
On Jan 6, 2011, at 5:38 PM, BareFeetWare wrote: On 07/01/2011, at 3:04 AM, Matt Neuburg wrote: GraphicConverter doesn't really have the cojones to do what you need done. You want something that can use e.g. the greyness of each pixel in the original image to determine the greyness of each

Re: SRV record lookup

2010-10-09 Thread Dave Camp
That would be a good question for the networking list. Dave On Oct 8, 2010, at 7:12 PM, Jeremy Matthews wrote: In one of my apps (Cocoa Desktop 10.6+ - not iOS) I need to perform some SRV lookups; I know there are a few ways to do this, but I'd like to know if anyone can speak from

Re: iphone large image downloading

2010-08-11 Thread Dave Camp
The UIImage class docs indicate you shouldn't create images larger than 1024 x 1024. You will either need to make sure your server will never send down an image larger than that, or download the image and downsample it to a reasonable size. Dave On Aug 11, 2010, at 12:46 AM,

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Dave Camp
On Jan 10, 2010, at 6:51 PM, Scott Ribe wrote: Just a quick note: one problem with this is false positives; you don't necessarily control all the code that handles the object in question. I think perhaps you didn't notice that he said at -dealloc time. There is no case in which an

Re: if statement causing 32 Byte leak?

2010-01-10 Thread Dave Camp
On Jan 10, 2010, at 9:13 AM, Glenn L. Austin wrote: On Jan 10, 2010, at 8:01 AM, Scott Ribe wrote: Also, an isAutoReleased message would be worthless. At any point in time, you have no idea how many times library routines that you've called might have retained/released/autoreleased, nor

Re: Printing to a ipp printer discovered with bonjour

2009-12-13 Thread Dave Camp
You have to read all the IPP RFC's (plus the CUPS unique extensions) and write a functioning IPP client. It's not trivial, but I've done it. Dave On Dec 11, 2009, at 2:59 PM, Development wrote: I'm trying to figure out how to print using IPP from an iphone. I'm able to get bits of info from

Re: NIB/XIB created objects, should they be released in -[dealloc]?

2009-11-23 Thread Dave Camp
On Nov 23, 2009, at 8:13 AM, Michael A. Crawford wrote: I wouldn't have though so. I would assume that since I did not allocate them directly, I don't need to clean them up. I've just inspected some code that declares properties that are marked as outlets and whose member variables are

Re: iPhone: NSOperation and UITableVIews

2009-11-09 Thread Dave Camp
On Nov 8, 2009, at 8:35 PM, John Michael Zorko wrote: I have an indexed table view with -- surprise -- images that take a long time to load. So, I put the loading into an NSOperation-derived subclass and have the main() method send a refresh msg to my main thread, telling it to reload the

Re: Hide an Item on Desktop

2009-10-09 Thread Dave Camp
On Oct 9, 2009, at 6:50 AM, David Patrick Henderson wrote: Depends on one's definition of supported. One cannot rename a file or folder in the Finder directly with a leading '.', or a ':'. Attempting to do so will cause warning dialogs for all these cases (and perhaps of which I am

Re: Mac access to iPhone Document Directory

2009-08-18 Thread Dave Camp
On Aug 18, 2009, at 7:28 AM, Sean Kline wrote: On Mon, Aug 17, 2009 at 9:29 PM, Clark Cox clarkc...@gmail.com wrote: On Mon, Aug 17, 2009 at 2:12 PM, The Grand Poohbahgr...@poohbah.com wrote: I'm writing a Mac application to process data for use with my iPhone app. It would be handy for

Re: [iPhone 3.0] correct way to release a UIImageView flip animation?

2009-08-09 Thread Dave Camp
On Aug 9, 2009, at 1:31 AM, John Michael Zorko wrote: Wow, it's late ... I forgot some of the code in the last email -- here's all of it (still not much, no worries). I see the program exited with signal:0 error after this code runs for awhile, and there's no backtrace. ... and I run a

Re: [iPhone] networking-is it crippled on the simulator?

2009-08-04 Thread Dave Camp
On Aug 4, 2009, at 5:43 AM, James Lin wrote: Hi all, Does anyone know the limitation of the iPhone simulator when it comes to networking? Is it crippled on the simulator? I've tried two seperate ways of opening up a server socket. By server socket, do you mean you are trying to connect

Re: Avoiding KVO in dealloc?

2009-08-03 Thread Dave Camp
On Aug 3, 2009, at 6:32 PM, Kiel Gillard wrote: On 04/08/2009, at 10:59 AM, Kyle Sluder wrote: On Mon, Aug 3, 2009 at 5:47 PM, Kiel Gillardkiel.gill...@gmail.com wrote: Do you have a documentation reference for that? I would have expected the isa swizzling to be an implementation detail of

Re: Challenge: Block Main Thread while Work is done, with Timeout

2009-07-24 Thread Dave Camp
On Jul 23, 2009, at 4:44 PM, Jerry Krinock wrote: I'd often like to block the main thread while another thread or process performs a little task, but subject to a short timeout. A few weeks ago, I was able to achieve this by running the main thread's run loop while an NSTask completed.

Re: [iPhone] CFAttributedStringRef autorelease - not possible?

2009-07-21 Thread Dave Camp
On Jul 19, 2009, at 9:13 AM, Michael Hoy wrote: NSString *m_scanString = @This is a test.; CFDictionaryRef emptyDic = (CFDictionaryRef)[NSDictionary dictionary]; CFAttributedStringRef attString = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)m_scanString, emptyDic);

Re: iPhone Question: UIScrollView

2009-07-21 Thread Dave Camp
On Jul 21, 2009, at 7:34 AM, Eric E. Dolecki wrote: I'm a real noob when it comes to the UIScrollView. What I would like to do: I have a View that contains a UIScrollView. Instead of loading an image in there, what I would like to do is load in another view (say an image that's a lot

Re: [iPhone] Encrypting data of an iPhone Application / Converting J2ME App functionality

2009-07-16 Thread Dave Camp
You might have better luck posting to the CDSA list (it's for crypto and security issues). Dave On Jul 16, 2009, at 3:13 AM, Tharindu Madushanka wrote: Hi, The Java application uses RC4 Encryption. Could some one help me to encrypt a String with CommonCrypto. I think we can use CCCrypt

Re: iPhone camera control like RedLaser

2009-07-08 Thread Dave Camp
Due to the dynamic nature of Obj-C, there really isn't a good way for Apple to detect most private API uses. Dave On Jul 8, 2009, at 7:05 AM, Roland King wrote: Is this the RedLaser app I just found on the store? I can't think that Apple would approve an app which used a private API. On

Re: NSTask curl

2009-06-07 Thread Dave Camp
On Jun 6, 2009, at 3:18 PM, Ammar Ibrahim wrote: On Sun, Jun 7, 2009 at 1:09 AM, Bill Bumgarner b...@mac.com wrote: On Jun 6, 2009, at 3:05 PM, Ammar Ibrahim wrote: Thanks that fixed it! Although when you call it directly from the command line, it's fine to have the space there! I'd

Re: [iPhone] Zooming Dragging a PDF Inside a UIScrollView

2009-05-22 Thread Dave Camp
If all you want to do is display a PDF, just use a UIWebView. It will display the PDF just like Safari with scrolling and whatnot and handle everything for you. Dave On May 22, 2009, at 10:35 AM, Bob Barnes wrote: Hi, I'm new to both Cocoa and iPhone so perhaps I've taken on

Re: Xcode 3.1.3 console output broken

2009-05-10 Thread Dave Camp
Since Xcode 3.1.3 is pre-release software, it's under NDA and you can't discuss it here. Try http://devforums.apple.com Dave On May 9, 2009, at 7:19 PM, sk wrote: Hello, Today has been a headache - first my upgrade to xcode 3.1.3 trashed all my certs/provisions. After two attempts, I

Re: 3 iPhone SDK Questions

2009-04-15 Thread Dave Camp
On Apr 15, 2009, at 12:54 PM, Steve Cronin wrote: I haven't stuck my toe in the iPhone water yet. I know I could find the answers to these by digging but I've been asked to find out the answers quickly... 1) Does the iPhone support the Cocoa AddressBook.framework? If so, do the AB change

Re: The efficiency of swapping endianness on an iPhone?

2009-04-14 Thread Dave Camp
On Apr 14, 2009, at 5:22 PM, Harry G wrote: Hi, I'm currently writing an app for iphone that downloads large tables of text and images , and my server outputs big endian. How significant would the extra processing be to convert to small endian on the iPhone? I'm sure most of you would

Re: kern/locks.h

2009-04-07 Thread Dave Camp
On Apr 7, 2009, at 10:08 AM, Barry Fawthrop wrote: Michael Dautermann wrote: Thanks Michael Can you suggest some learning resources on how to (a) learn more and (b) accomplish an iPhone acceptable locking mechanism for the iPhone. For ported code, the pthreads library might be what you

Re: iPhone Tab bar Question

2009-03-24 Thread Dave Camp
On Mar 23, 2009, at 6:02 PM, Jason Todd Slack-Moehrle wrote: I created a standard iPhone application using the built-in wizard and it builds and runs fine. My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I dont see how

Re: iPhone Tab bar Question

2009-03-24 Thread Dave Camp
On Mar 24, 2009, at 8:32 AM, Jason Todd Slack-Moehrle wrote: My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I dont see how to adjust the height of the bar so I gain some extra space. You can't. Where does one find

Re: What is using up so much memory here?

2009-03-10 Thread Dave Camp
On Mar 10, 2009, at 4:26 PM, James Cicenia wrote: Here is the offending code that sucks up about 2MB: NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; while(thisState = [statesEnum nextObject]){ UIImageView *singleStateView = [[[UIImageView alloc]initWithFrame:CGRectMake(2,0,

Re: What is using up so much memory here?

2009-03-10 Thread Dave Camp
Well, since you obviously can't have all of those images on screen at the same time at full size, you should either just load what you need or resize them to a more appropriate size. Dave On Mar 10, 2009, at 4:41 PM, James Cicenia wrote: Interesting... I didn't know that, but then it begs

Re: creating a printer

2008-10-12 Thread Dave Camp
On Oct 12, 2008, at 6:54 PM, Scott Ribe wrote: But how do I add a printer to the system? Any pointers to the right docs? I think you'll have to use lpadmin, via NSTask, and it's not particularly easy to figure out the right options without knowing a good bit about CUPS, which I don't...

Re: Initializing font size in UITextField

2008-06-15 Thread Dave Camp
On Jun 15, 2008, at 3:30 PM, Mike Westerfield wrote: I'm trying to set the font size in a UITextField that is created using Interface Builder in the iPhone SDK. I'm new to Cocoa, so there may be something obvious I'm missing. The first thing you are missing is that the SDK is under NDA and

Re: Problems with Launchd Daemon

2008-04-28 Thread Dave Camp
On Apr 28, 2008, at 12:00 PM, JanakiRam wrote: I am developing a Mac cocoa application suite which has a launchd daemon ( which is a pure cocoa application ). I'm able to launch the cocoa daemon using launchctl command properly. But when i place the plist in /Librart/LaunchDaemons ,after

Calling NSNumber class methods on NSDecimalNumber

2008-04-22 Thread Dave Camp
After some testing, it appears that calling NSDecimalNumber with class methods of it's NSNumber parent class return the expected NSDecimalNumber object. For example, [[NSDecimalNumber numberWithDouble:1.1] isKindOfClass:[NSDecimalNumber class]] returns YES (and the resulting object has the

Re: [OT: security] smbclient

2008-04-15 Thread Dave Camp
On Apr 15, 2008, at 12:52 PM, Stuart Malin wrote: [sorry to post here, but I don't know what other list might be better/more appropriate] I'd suggest the network list, since it's a network question... Dave ___ Cocoa-dev mailing list

Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-10 Thread Dave Camp
On Apr 10, 2008, at 3:06 PM, E. Wing wrote: On 4/9/08, Dave Camp [EMAIL PROTECTED] wrote: After designing the UI for a new System Preferences pane I've discovered that the window size in Leopard is 75 pixels wider than it was in Tiger or earlier OS releases. The net result appears

System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-09 Thread Dave Camp
After designing the UI for a new System Preferences pane I've discovered that the window size in Leopard is 75 pixels wider than it was in Tiger or earlier OS releases. The net result appears to be that my shiny new UI is clipped on the right side in Tiger. Ugh. I've sent feedback that the

Re: Cocoa way to get list of user accounts?

2008-03-11 Thread Dave Camp
On Mar 10, 2008, at 11:00 PM, Mac QA wrote: I am seeking the nice clean Cocoa way of getting a list of user accounts on the local system. Ultimately in the form of an NSArray of NSStrings of user account short names. There must be a way without parsing obscure system files, or spawning off

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread Dave Camp
On Mar 3, 2008, at 11:00 PM, Stuart Malin wrote: My problem is that I receive a function call from a C library that gives me a wchar_t array and its length. The unicode array is _not_ terminated. The library defines an XML_Char type, so my code below refers to that, but XML_Char is

Re: Using NSPredicate to parse strings

2008-03-03 Thread Dave Camp
On Mar 3, 2008, at 10:12 AM, Jonathan Dann wrote: On 3 Mar 2008, at 16:16, Mike Abdullah [EMAIL PROTECTED] wrote: Jonathon, you'll have much better luck with NSScanner. It's designed for exactly what you want. Mike. Thanks Mike, just tried it and it works quite well. Any way of