Re: Where and how do I know a save completed successfully?

2015-04-29 Thread Michael Crawford
1. The compiler crash should never happen, obviously, so that's a bug report. To be more clear - it doesn't matter how screwed up your source could possibly be, the compiler must never crash. If it does, then it's a bug in the compiler. It's quite likely that a slightly more subtle problem in

One must handle UIInterfaceOrientationUnknown

2015-04-26 Thread Michael Crawford
I had a rather unsightly UI bug that resulted in the initial layout of Warp Life's UI being all wonky. After some repeated testing I determined that it only happened right at app startup, and only if I was holding my iPod in an almost-but-not-quite level sorta kinda landscape mode. I got the

Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
My iOS App includes some simple file management, that enables the user to save the state of their game as well as to exchange the game states with other people. I have a sheet that looks like this: Title: File Management Destructive Option: Delete File Open Save I also specify a

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
a guarantee that the action sheet has already been dismissed before I display the alert. Just trying out different ad-hoc delays seems a little sketchy. On 4/25/15, Michael Crawford mdcrawf...@gmail.com wrote: My iOS App includes some simple file management, that enables the user to save the state

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
On 4/25/15, Roland King r...@rols.org wrote: There are delegate methods for UIActionSheet and UIAlertView which tell you when the animation has finished. xxx:didDismissWithButtonIndex: You Da Man. I am closer to understanding why this is not working. my call to [alertView show] returns

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
On 4/25/15, Mike Abdullah mabdul...@karelia.com wrote: Apple's APIs here are deliberately asynchronous. You need to make your code handle that properly. Don't try to force it to be synchronous. Some things need to be synchronous though. If I'm saving a file, I don't want to do anything else

Re: Crash at iOS App Startup - What Could Have Gone Wrong?

2015-04-23 Thread Michael Crawford
I have it mostly working now. Thanks for your help. tl;dr: my .xib's were really messed up, it probably should never have worked but the problems became more apparent when I refactored a single large, rather messy source file. In the beginning I did not use a Navigation Controller; I added that

Re: UIImage to jpeg results change between 32-bit 64-bit

2015-04-22 Thread Michael Crawford
If you think it's a bug on Apple's part, please file at http://bugreport.apple.com/ Does your problem also occur in the simulator, or only on a device? It could be a symptom of some other bug, possibly a bug of your own which occurs earlier but causes trouble later. -- Michael David Crawford,

Re: UIImage to jpeg results change between 32-bit 64-bit

2015-04-22 Thread Michael Crawford
Would it work for you to convert the image using libjpeg? It is open source. -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area.

Re: How to drag a subview onto a parent view in IB?

2015-04-21 Thread Michael Crawford
this into submission somehow. MIke On 4/20/15, Michael Crawford mdcrawf...@gmail.com wrote: Forgive me if this is a really dumb question, I haven't tried to do this in eons. I added a .xib to my existing project; it doesn't use a storyboard. The iPhone .xibs are mostly done but I realized that a couple

Re: Crash at iOS App Startup - What Could Have Gone Wrong?

2015-04-21 Thread Michael Crawford
for Software Development in the Portland, Oregon Metropolitan Area. On Tue, Apr 21, 2015 at 12:36 PM, Mike Abdullah mabdul...@karelia.com wrote: On 21 Apr 2015, at 19:13, Michael Crawford mdcrawf...@gmail.com wrote: OK I'll set up a git repository, but I'd like to fix this first. I think my

Re: Crash at iOS App Startup - What Could Have Gone Wrong?

2015-04-21 Thread Michael Crawford
OK I'll set up a git repository, but I'd like to fix this first. I think my MainWindow.xib got misconfigured or corrupted, so I made a new one. I have a UINavigationController with a custom class inside it called LifeIPhoneViewController. Inside the latter is a LifeView as well as some controls

Crash at iOS App Startup - What Could Have Gone Wrong?

2015-04-21 Thread Michael Crawford
I screwed something up. If I can't fix it I can restore from backup. I'm too cheap to use git but I make regular tarballs. I spent some time monkeying around with Interface Builder. My iPhone .xibs were mostly complete but my iPad quite incomplete, as a while back I ripped everything out to

Re: Crash at iOS App Startup - What Could Have Gone Wrong?

2015-04-21 Thread Michael Crawford
I expect you are correct, however this project is so old it doesn't have a storyboard, it has a half-dozen .xibs for each of the iPhone and iPad. Checking for nil IBOutlets with assert() is helpful. Some of my code, I know it worked once but when I look at it now it doesn't make any sense at

Re: Crash at iOS App Startup - What Could Have Gone Wrong?

2015-04-21 Thread Michael Crawford
The reason I haven't been using version control is that I prefer to operate my own servers - but then I have to set them up, and it's quicker just to roll a tarball. My source code isn't so bad but looking over my .xibs just now, some of them don't make a whole lot of sense, I expect because they

Re: Crash at iOS App Startup - What Could Have Gone Wrong?

2015-04-21 Thread Michael Crawford
/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Tue, Apr 21, 2015 at 1:00 PM, Alex Zavatone z...@mac.com wrote: On Apr 21, 2015, at 3:43 PM, Michael Crawford wrote: It's not stopping in the debugger anymore, but instead of getting my navigation controller I'm just

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
: On Mon, Apr 20, 2015, at 05:59 PM, Michael Crawford wrote: The method for iOS 5 and later on this page looks good: Please stop reaching in to the UIAlertView hierarchy. As has been documented forever, this is not supported. --Kyle Sluder

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
that prior to iOS 8? Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Apr 20, 2015 at 3:30 PM, Michael Crawford mdcrawf...@gmail.com wrote: Michael David

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Apr 20, 2015 at 3:46 PM, Michael Crawford mdcrawf...@gmail.com wrote: I'm cool to implement this some other way, however

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Apr 20, 2015 at 9:02 AM, Kyle Sluder k...@ksluder.com wrote: Why are you doing this? Honestly I don't

Re: Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread Michael Crawford
Thanks David. It looks like the .xcappdata format should be quite simple, provided I can find out what the AppDataInfo.plist should look like. I haven't paid the Apple Tax for this year, and won't be able to until I get a job, and won't be able to get a job until I ship my iOS App. Therefore I

Re: Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread Michael Crawford
(David Brittain sent me his AppDataInfo.plist.) That gets me part of the way there but now I get the message Application Data package not copied to the Simulator because it doesn't have a data folder, along with the promise to copy it the _next_ time it is run, however that doesn't happen.

How to drag a subview onto a parent view in IB?

2015-04-20 Thread Michael Crawford
Forgive me if this is a really dumb question, I haven't tried to do this in eons. I added a .xib to my existing project; it doesn't use a storyboard. The iPhone .xibs are mostly done but I realized that a couple are missing for the iPad. I click on the .xib in the list to the left, then I get a

Copy test docs to Simulator App's Documents folder?

2015-04-20 Thread Michael Crawford
I have a few test documents that I need to have copied to my App's Documents folder whenever I build it. This is now problematic as it seems the app gets put into a different place each time it is built. I tried using a Build Phase for each but it doesn't put them into the Documents folder. I

UIAlertView has zero bounds

2015-04-19 Thread Michael Crawford
I have some code from Erica Sadun's iPhone Developers Cookbook that used to work. I do realize that UIAlertView is deprecated in iOS 8 - but that means it should still be present, it hasn't gone away quite yet. What I want to accomplish is to prompt the use for a filename to save a document in

Re: Where is my bicycle?

2015-04-06 Thread Michael Crawford
If you're unable to do what you need with Cocoa, maybe it would work to use ICU. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Apr 6, 2015 at 4:57

Re: Where is my bicycle?

2015-04-06 Thread Michael Crawford
Your bicycle showed up in my GMail in Firefox on Yosemite, but not in Safari on my Mom's iMac running Tiger. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On

Re: Where are my bytes?

2015-04-04 Thread Michael Crawford
To expand on what Ken said: And lstat shows: st_size = 4893 (file size, in bytes) st_blocks = 0 (blocks allocated for file) st_flags = 0x20 (user defined flags for file) I think this may be the result of Dominic Giampaolo hiring on with Apple after Be, Inc.

Re: Where are my bytes?

2015-04-04 Thread Michael Crawford
Could your filesystem be corrupt? Run Verify Disk under First Aid in Disk Utility. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Apr 4, 2015 at 2:23

Re: how to slim down view controllers?

2015-04-01 Thread Michael Crawford
I need to slim down mine as well. Read the book Refactoring by Martin Fowler. I'm not real sure how to proceed with mine; it grew organically. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the

Re: Storyboard warning: internationalization of (null)

2015-03-26 Thread Michael Crawford
in the Portland, Oregon Metropolitan Area. On Thu, Mar 26, 2015 at 9:48 PM, dangerwillrobinsondan...@gmail.com wrote: I think the problem is storyboards are not available prior to 10.10 Is that going to run on anything earlier? Sent from my iPhone On 2015/03/27, at 13:26, Michael Crawford mdcrawf

Re: Storyboard warning: internationalization of (null)

2015-03-26 Thread Michael Crawford
, but maybe have a look at your project settings 'Info' tab and in 'localizations'. Maybe you have here an extra language set, but no corresponding 'xxx.lprol' on disk... Hope that helps... ++GG On 25 Mar 2015, at 8:17, Michael Crawford mdcrawf...@gmail.com wrote: I'm debugging a project

Storyboard warning: internationalization of (null)

2015-03-25 Thread Michael Crawford
I'm debugging a project for a client; he got his OS X App mostly working, then sent it to me to fix. I know how to handle his most serious problem, but I'd like also to silence all the warnings. Main.storyboard: Internationalization of (null) is not available when compiling for targets before

Re: Finding the use of a private API

2015-03-16 Thread Michael Crawford
would it work to use a binary editor - that is, a hex editor - to alter the name of the symbol you're linking to, at which point you call abort(), divide by zero, or call a method that exists only so you can set a breakpoint in it? You might need to learn the intimate details of the Mach-O

Re: Human-understandable process name

2015-02-13 Thread Michael Crawford
Would it help to examine kernel data structures? Not everything the kernel does is directly accessible by userspace frameworks, but within certain limits mostly having to do with security you can read many kernel data structures. I don't personally know which ones would help you however this

Re: All buttons lost focus ring on Yosemite

2015-02-12 Thread Michael Crawford
I expect that it's some other problem that is somehow impacting UIButton. Given that every button loses focus, perhaps an errant pointer is overwriting one or more of UIButton's class variables. Your application runs on OS X, so you should be able to test it under Valgrind

[OT] Please Drop Binky Melnik A Line

2015-02-08 Thread Michael Crawford
Friends, Binky Melnik was one of the sysops of the CompuServe Macintosh Developers Forum back in the day. She's had some quiet serious health problems the last little while. Fortunately, as a veteran of the US Air Force her medical care is being taken care of by Uncle Sam. If you were ever a

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Michael Crawford
If debugging your code or interface builder layouts don't help, it could be a corrupt Xcode project. I have at times been able to fix my .pbxproj documents by editing them with a text editor. If you study them for a little while you can obtain some insight as to what the format means. There

Re: Networking framework crash

2015-02-04 Thread Michael Crawford
: On 5 Feb 2015, at 1:53 pm, Michael Crawford mdcrawf...@gmail.com wrote: This Spam Has Been Brought To You By: No disrespect, but after 30+ years of developing, I am roughly conversant with debugging strategies. This is not an easy one to isolate, because there's very little information

Re: Networking framework crash

2015-02-04 Thread Michael Crawford
There are all kinds of ways that your bug could be somewhere else, other than where the processor finds an illegal instruction that generates an exception that yields your panic. There are a number of strategies for dealing with this that are quite a lot easier than single-stepping with a

Re: Job postings at Cocoa mailing list

2015-02-03 Thread Michael Crawford
you guys confirm if it is OK to post job openings in this mailing list or not? Thanks in advance. On Tuesday, February 3, 2015, Chris Hanson c...@mac.com wrote: On Feb 2, 2015, at 5:54 PM, Michael Crawford mdcrawf...@gmail.com wrote: Last I heard, the admin of the lists that I knew about

Re: Job postings at Cocoa mailing list

2015-02-02 Thread Michael Crawford
Last I heard, the admin of the lists that I knew about was Chris Hansen, chan...@apple.com Mike Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Feb 2,

Re: Inexplicable Crash in -[NSAppleScript executeAndReturnError:]

2015-01-23 Thread Michael Crawford
perhaps the bug occurred somewhere else and either corrupted the heap or wrote an erroneous value into some data structure, with the eventual result that you jumped off into hyperspace, then ran along just fine until a method was called with parameters that were suitably invalid as to cause a

Re: What's up with the Cocoa Text System?

2015-01-23 Thread Michael Crawford
At one time I found it quite painful to edit source code with Xcode. I was told that was due to Xcode using the Cocoa text widget. Consider that Lightspeed C worked just fine, snappy and responsive, on my 6 MHz 68000 Mac 512k (or was it 8 MHz). I myself did a lot of the work on Working

Re: What's up with the Cocoa Text System?

2015-01-23 Thread Michael Crawford
for Software Development in the Portland, Oregon Metropolitan Area. On Fri, Jan 23, 2015 at 2:16 PM, Jens Alfke j...@mooseyard.com wrote: On Jan 23, 2015, at 1:53 PM, Michael Crawford mdcrawf...@gmail.com wrote: At one time I found it quite painful to edit source code with Xcode. I was told

A Polite Request of Apple's Bug Triage Committee

2015-01-09 Thread Michael Crawford
A few days ago I reported quite a serious bug, which was closed as a duplicate. It doesn't matter really what my bug was, or the nature of the duplicate. Apple employees may not be aware that, while us third-party developers can file bugs at http://bugreport.apple.com/ we cannot read bugs other

Re: Am I Reinventing the Wheel? (Part I)

2015-01-08 Thread Michael Crawford
Do you absolutely _require_ the use of Cocoa to process your XML? There are oodles of Open Source XML libraries. I myself have had great success with Xerces-C (actually C+). Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for

Re: Blurry is the New Sharp

2015-01-07 Thread Michael Crawford
The last time I reported a bug of any sort to anyone, I reported quite a serious iOS security hole via Radar. The Apple engineer who responded quite angrily closed my bug as works as expected. He didn't just close the bug - he expressed a great deal of anger for having reported the exploit at

Re: Blurry is the New Sharp

2015-01-05 Thread Michael Crawford
I'm going to be 51 years old soon. I spend all day long staring at a computer. I've had trouble with eye fatigue for years. Semitransparent windows drive me nuts; to the extent I can turn off the effect I do so. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com

Re: Beep ( frequency, duration)

2014-12-30 Thread Michael Crawford
/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Tue, Dec 30, 2014 at 6:06 PM, Jens Alfke j...@mooseyard.com wrote: On Dec 29, 2014, at 2:12 PM, Michael Crawford mdcrawf...@gmail.com wrote: My input does come from another thread, reading ogg vorbis

Re: Beep ( frequency, duration)

2014-12-30 Thread Michael Crawford
://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Tue, Dec 30, 2014 at 6:30 PM, Michael Crawford mdcrawf...@gmail.com wrote: If you're doing this for your own entertainment or education I would tell you why I'm doing this, but to do so would just

Re: Beep ( frequency, duration)

2014-12-29 Thread Michael Crawford
The following plays a 441 Hz tone directly into the audio driver. If you alter this code, it is important not to block requests from the audio driver for more samples. While this source runs in userspace, and it supplies data from userspace, the requests for samples seem to be coming from a

Re: Beep ( frequency, duration)

2014-12-29 Thread Michael Crawford
, Dec 29, 2014 at 1:14 PM, Wim Lewis w...@omnigroup.com wrote: On Dec 29, 2014, at 2:12 AM, Michael Crawford mdcrawf...@gmail.com wrote: for ( int i = 0; i inNumberFrames; ++i ){ *sample++ = sin( twoPi * ( now / 100.0 ) ); now += 1.0; } Depending on what your overall goal

How to choose different implementations of an object method at runtime?

2014-01-23 Thread Michael Crawford
I'm working on a Mac OS X product that currently runs on 10.6 through to 10.9. This product includes an NSColor category method named CGColor, which is patterned after the iOS UIColor interface and returns a CGColorRef. @interface NSColor (CGColor) - (CGColorRef)CGColor CF_RETURNS_RETAINED;

Re: How to choose different implementations of an object method at runtime?

2014-01-23 Thread Michael Crawford
Thanks for the reply, Greg. I running with ARC enabled. The compiler flags any calls to autorelease. What am I missing? -Michael On Jan 23, 2014, at 4:02 AM, Greg Parker gpar...@apple.com wrote: On Jan 20, 2014, at 12:27 PM, Michael Crawford michaelacrawf...@me.com wrote: I also realize

Re: How to choose different implementations of an object method at runtime?

2014-01-23 Thread Michael Crawford
Thomases k...@codeweavers.com wrote: On Jan 20, 2014, at 2:27 PM, Michael Crawford wrote: I'm working on a Mac OS X product that currently runs on 10.6 through to 10.9. This product includes an NSColor category method named CGColor, which is patterned after the iOS UIColor interface

Re: How to choose different implementations of an object method at runtime?

2014-01-23 Thread Michael Crawford
of our combined expertise in doing so. Have a great day, fellas. -Michael On Jan 23, 2014, at 2:45 PM, Jens Alfke j...@mooseyard.com wrote: On Jan 20, 2014, at 12:27 PM, Michael Crawford michaelacrawf...@me.com wrote: As I'm sure you are aware, 10.8 now defines a method that does the same

Re: There must be a live human at Apple?

2013-08-03 Thread Michael Crawford
David, On 8/3/13, David E Blanton aired...@tularosa.net wrote: Check in to a Portland mental hygiene facility … you need serious counseling. I'm not sure I follow your argument. Were I to but lift a finger, I could demonstrate that I represent the true feelings of most Apple developers. My

There must be a live human at Apple?

2013-08-02 Thread Michael Crawford
Leaving Money On The Table Is Bad, MMKay? Could get a live human at Apple to change my iOS Developer type from Corporate to Individual? My Apple ID is: mdcrawf...@gmail.com My Corporate membership expired well over a year ago. My board of directors totally bailed on me. While there are

Re: There must be a live human at Apple?

2013-08-02 Thread Michael Crawford
Himself possesseth not the Power to undo the Past. On Fri, Aug 2, 2013 at 10:40 PM, Jeffrey Walton noloa...@gmail.com wrote: TLDR; Is there a question in here anywhere? On Fri, Aug 2, 2013 at 6:09 PM, Michael Crawford li...@warplife.com wrote: Leaving Money On The Table Is Bad, MMKay? Could get

Re: There must be a live human at Apple?

2013-08-02 Thread Michael Crawford
, Michael Crawford li...@warplife.com wrote: My hope is to submit an _already_ complete App to the App Store, but I _cannot_ do so, until I can change my developer type from Corporate to Individual. To do so would be a State of California Felony, as operation of a Suspended Corporation

Re: There must be a live human at Apple?

2013-08-02 Thread Michael Crawford
Zavatone z...@mac.com wrote: Call up Apple and ask them yourself. i did yesterday. https://developer.apple.com/contact/phone.php On Aug 2, 2013, at 6:09 PM, Michael Crawford wrote: Leaving Money On The Table Is Bad, MMKay? Could get a live human at Apple to change my iOS Developer type from

Re: There must be a live human at Apple?

2013-08-02 Thread Michael Crawford
the corporate asset (dev portal access) of a defunct company going to an individual rather than going through a bankruptcy court. On Fri, Aug 2, 2013 at 5:19 PM, Michael Crawford li...@warplife.com wrote: Hunter, I used the contact link on that Account Management page about a week ago

Re: Mixing Obj-C and C methods

2013-07-30 Thread Michael Crawford
I don't think so, not it if has a C-language prototype rather than an Objective-C method prototype. However, I expect there is a way you could call an Objective-C method from vanilla C. Possibly you will need some assembly-language glue. Ultimately, Objective-C method calls are implemented, I

Re: Mixing Obj-C and C methods

2013-07-30 Thread Michael Crawford
The same is true for class methods, by the way. If a class method has a reference to an instance of the class, it can directly access the instance's ivars the same way. Objective-C shares a property with some languages, but not with others, that classes are actual objects. That is, if my

Re: To 'Pinch' or 'Rotate'

2013-07-14 Thread Michael Crawford
I don't have the answer to your question, however I will point out that gestures are hard to roll yourself because of Switch Bounce. That is, with my own two finger gesture, the number of finger contacts is reported as 2,1,1,2,1,1,2,2,2,2,1,1,2 and so on. When just one finger contact is

Re: Why isn't scrollRectToVisible animating?

2013-07-04 Thread Michael Crawford
Are you sure that your swipeWithEvent method is actually getting called? Maybe Cocoa is handling the scrolling itself, because it automagically recognizes the swipe gesture. Also check the ensure that you're actually detecting a three-fingered gesture. I did not use gesture recognizers in Warp

Re: iterative process building huge stack

2013-06-30 Thread Michael Crawford
Are you using any recursive algorithms? You might be but not know it. For example the C standard library qsort() is recursive. It's worst case runtime is O( n^2 ). In the average case its stack size is O( log n ). I'm not dead certain but I think the worst case stack size is O( n^2 ) as well.

Re: Core Data Reverse Engineering KickStarter Project

2013-06-25 Thread Michael Crawford
On 6/25/13, Scott Ribe scott_r...@elevated-dev.com wrote: This is what I've been thinking--with the importer asserted to a crazy extent, so that you get notified of anything that it doesn't completely understand. Using assertions in an importer is one of my more-effective reverse engineering

Re: Core Data Reverse Engineering KickStarter Project

2013-06-24 Thread Michael Crawford
to figure out how to actually do it. Mike On Sun, Jun 23, 2013 at 5:49 AM, Scott Ribe scott_r...@elevated-dev.com wrote: On Jun 22, 2013, at 7:38 PM, Michael Crawford wrote: If you claim you know how to estimate software development time and cost, I don't believe you. I do, and I do *very* well

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Michael Crawford
I don't use Core Data because it's not cross-platform. In my honest opinion no one in their right mind would bet their livelihood on platform-specific document formats, no matter what the platform. I used to be a Senior Engineer at Apple. Many of my best friends still work for Apple. But I

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Michael Crawford
...@charlessoft.com wrote: On Jun 22, 2013, at 10:43 AM, Michael Crawford mdcrawf...@gmail.com wrote: I don't use Core Data because it's not cross-platform. In my honest opinion no one in their right mind would bet their livelihood on platform-specific document formats, no matter what the platform

Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Michael Crawford
To me, it's not that you'd have to write all the code from scratch that makes Core Data concerning, it's the fact that the format is undocumented. If Apple published a complete specification for the format, I'd be willing to use Core Data, but as it is, the prospect of having one's own

Re: Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Michael Crawford
. That might sound like a really high hourly rate for just one month's work, but I would have to work almost 24/7 to pull it off. Mike On Sat, Jun 22, 2013 at 6:52 PM, Charles Srstka cocoa...@charlessoft.com wrote: On Jun 22, 2013, at 8:38 PM, Michael Crawford mdcrawf...@gmail.com wrote: Just now I'm

Re: Core Data Reverse Engineering KickStarter Project

2013-06-22 Thread Michael Crawford
consulting gig, and received just one client paycheck. We did have a bank account, but that was over twenty years ago. I wouldn't have expected such records to be kept so long, and to be available so quickly. Mike On Sat, Jun 22, 2013 at 7:53 PM, Michael Crawford mdcrawf...@gmail.com wrote: Oopsy

Re: fast search of NSPointerArray

2013-06-22 Thread Michael Crawford
Would the C++ Standard Template Library help? One can compile Objective-C++ by giving such sources the .mm extension. In general there are data structure templates, and algorithm templates - search a vector, search a tree, search a linked list, sort a vector, etc. The algorithms all have

iOS 6, VoIP, and -viewDidLoad

2013-06-20 Thread Michael Crawford
When iOS automatically restarts a VoIP app that has crashed or been removed by the watchdog for some reason, does -viewDidLoad run when the app is automatically restarted? I ask because when this type of restart occurs, it appears to happen silently, without presenting the restarted app's

Re: iOS 6, VoIP, and -viewDidLoad

2013-06-20 Thread Michael Crawford
On 6/20/13, Michael Crawford michaelacrawf...@me.com wrote: Michael A. Crawford? Did you at one time work for Apple? Did you at one time get a lot of phone calls and emails meant for me? I had long grown weary of pointing out to callers to look for our middle initials in the corporate phone

Re: iOS 6, VoIP, and -viewDidLoad

2013-06-20 Thread Michael Crawford
On 6/20/13, Michael Crawford michaelacrawf...@me.com wrote: I am trying to trigger this behavior by allocating huge amounts of memory on a timer and then leaking it on purpose but so far, instead of getting a memory warning and then subsequently having the app evicted due to memory pressure

Re: iOS 6, VoIP, and -viewDidLoad

2013-06-20 Thread Michael Crawford
. -Michael On Jun 20, 2013, at 12:54 PM, Fritz Anderson fri...@manoverboard.org wrote: On 20 Jun 2013, at 11:20 AM, Michael Crawford michaelacrawf...@me.com wrote: When iOS automatically restarts a VoIP app that has crashed or been removed by the watchdog for some reason, does -viewDidLoad run when

Re: Looking for a good starting point to create a shared data resource between iOS apps

2013-06-20 Thread Michael Crawford
Do you have to be able to get at the data when you're not connected to the Internet? If not, you could store it on an HTTP server. Do shared memory segments work on iOS? I would expect not because of the sandbox, but maybe they do. Do localhost (127.0.0.1) TCP sockets work between two

Re: Causes of Cannot update object that was never inserted

2013-06-17 Thread Michael Crawford
Try adding assertions throughout your code. I get the most mileage by validating the input parameters to all my subroutines. If one of your parameters is a pointer, can it be nil? Less commonly I validate return results and side effects. Also look through all of your subclass method overrides,

UICollectionView with NSFetchedResultsController; compatible?

2013-06-09 Thread Michael Crawford
I just finished watching Marcus Zarra's NSFetchedResultsController presentation from iDeveloper.tv . At about 25 minutes into the presentation, Marcus says the NSFetchedResultsController only works well with table-view controllers. I had planned to use it with a collection-view, which is why

ASL appears to be broken on iOS; need a workaround

2013-06-07 Thread Michael Crawford
on iOS 6, I've been trying to add a couple of custom fields to the asl_msg instances I'm logging to the ASL database. I can create the log entries but when I issue a query to retrieve them later on (immediately, in the unit test), I get an aslresponse of zero. Same code works on Mac OS X 10.6

Re: NSMapTable with C strings as keys

2013-05-28 Thread Michael Crawford
Cryptographic hashes such as md5 are intensive to calculate because they are meant to make it difficult for an attacker to come up with different inputs that output identical hashes. For purposes of looking up strings in a hash table, a 32 bit CRC (Cyclic Redundancy Check) would be quick to

Re: crash in

2013-05-24 Thread Michael Crawford
Try loading your document into a DOM with either Xerces-C - actually C++ - or Xerces - Java. It's not hard at all to write a program just a few lines long to do that. If your document is not conformant to XML, Xerces will complain. If your format isn't that complex, it's not hard to write a

Re: crash in

2013-05-24 Thread Michael Crawford
TextWrangler (http://www.barebones.com/) will tell you whether the document contains characters that aren't permitted by the encoding when you do a Save As. Note that DTD validators are incapable of validating the payload of XML elements (the free tags between the opening and closing tag) as well

Re: Creating More Than 1 Of The Same Element/control

2013-05-23 Thread Michael Crawford
It is distressing to me that Interface Builder uses explicit, fixed coordinates for positioning and sizing its widgets. That means that, for localization for example, to accomodate the different numbers of characters in the various languages, you have to create different nibs for each locale.

Re: Creating More Than 1 Of The Same Element/control

2013-05-23 Thread Michael Crawford
this issue for you? Interface Builder Help: Auto Layout: Understanding Constraintshttp://developer.apple.com/library/ios/#recipes/xcode_help-interface_builder/articles/UnderstandingAutolayout.html Regards, Jay O'Conor joco...@gmail.com On May 23, 2013, at 10:44 AM, Michael Crawford

Re: UIWebView IBOutlet is always nil

2013-05-12 Thread Michael Crawford
On Fri, May 10, 2013 at 5:34 AM, Fritz Anderson fri...@manoverboard.orgwrote: On 5 May 2013, at 6:47 PM, Michael Crawford mdcrawf...@gmail.com wrote: @property (retain,nonatomic) IBOutlet UIWebView *webView; ... @synthesize webView; ... NSLog( @%@, webView ); I've seen this before

UIWebView IBOutlet is always nil

2013-05-09 Thread Michael Crawford
I have a UINavigationController-based app that I would like to use a UIWebView to show an HTML page. My problem is that I declare my UIWebView property as an IBOutlet, and it is always nil. This is apparently a very common problem. Google turns up lots of queries at StackOverflow. I read them

Re: How to prevent Segue with modal form-sheet and AutoLayout from resizing my view?

2012-09-22 Thread Michael Crawford
is some sort of race condition, but it does work. -Michael On Sep 21, 2012, at 7:31 PM, Michael Crawford wrote: This problem is kind of tough to describe without pictures. Thus, there will be links to graphical images to help you understand my dilemma. So, I'm trying to display a modal form

How to prevent Segue with modal form-sheet and AutoLayout from resizing my view?

2012-09-21 Thread Michael Crawford
This problem is kind of tough to describe without pictures. Thus, there will be links to graphical images to help you understand my dilemma. So, I'm trying to display a modal form-sheet over the app's main view using Storyboards and a segue. I'm using Xcode 4.5 with iOS 6 to implement an iPad

How to display tool-tip on demand

2012-08-05 Thread Michael Crawford
Is there a way to display a tool-tip in response to an event? Currently I'm waiting for the default timeout but if the user clicks on a particular cell (yes this is an NSTableView), I'd like to display the tool-tip immediately. The contents of the NSTableColumn in question are not editable so

Re: How to display tool-tip on demand

2012-08-05 Thread Michael Crawford
implementation. Of course, now we have NSPopover windows that could fit your need. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Aug 5, 2012, at 4:56 PM, Michael Crawford michaelacrawf...@me.com wrote: Is there a way to display a tool-tip in response to an event

Need help filtering mouse events in an overlay child window

2012-05-11 Thread Michael Crawford
I'd like to act on -mouseDown when it occurs within the bounds of an NSImageView, which is a subview of a transparent overlay child window. Some of you may be wondering why I'm trying to do this so I'll try to explain that up front. There are bugs in Snow Leopard regarding the use of Core

Re: iOS launch Music app?

2012-05-08 Thread Michael Crawford
Have you considered Scripting Bridge? You can use this to not only launch iTunes but also to do anything that can be done using the supported AppleScript interface. -Michael On May 8, 2012, at 17:38, Alex Zavatone z...@mac.com wrote: It's not listed here, but maybe this list will get you on

Re: iOS launch Music app?

2012-05-08 Thread Michael Crawford
Oops. When I think iTunes, I think desktop. Sorry for the noise. -Michael On May 8, 2012, at 21:00, Kyle Sluder k...@ksluder.com wrote: On May 8, 2012, at 5:53 PM, Michael Crawford wrote: Have you considered Scripting Bridge? You can use this to not only launch iTunes but also to do

Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?

2012-04-24 Thread Michael Crawford
Thanks for the suggestion, Kyle. I subclassed NSTextViewCell and implemented -setUpFieldEditorAttributes. My apologies to anyone who initially followed this thread and has had to wait till now for a solution/outcome. This became a low-priority issue almost as soon as I posted it and I only

Re: How to bind to NSMutableArray that may contain zero objects?

2012-04-10 Thread Michael Crawford
, Quincey Morris wrote: On Apr 3, 2012, at 15:29 , Michael Crawford wrote: Using and NSArrayController I'd like to bind the controller to an instance of NSMutableArray, which under certain circumstances may contain zero objects. I don't have any real experience with NULL placeholders but I

  1   2   >