Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Mark Woollard
From [UILabel setLineBreakMode:] documentation: If you are using styled text in iOS 6 or later, assigning a new value to this property causes the line break mode to be applied to the entirety of the string in the attributedTextproperty. If you want to apply the line break mode to only a portion

Re: Is CoreData on iOS ready for prime time for serious work?

2013-02-13 Thread Mark Woollard
I've used CoreData extensively in various apps developed over several years, including multi-threaded use on two or more threads, and across multiple data stores. Like you have used the confinement method. I've found it very reliable except when bugs have broken the confinement model. Then thing

Re: Predicate search across Core Data entities.

2012-02-01 Thread Mark Woollard
If I understand you correctly, you want to search for matches against attributes in the various objects in your model. I would move the searchable attributes out into their own entity 'searchableAttribute', with attributes 'name' and 'value'. I'd then define a base entity 'searchableEntity' and

Re: In-app SMS

2010-09-25 Thread Mark Woollard
My understanding is that although you can compose an SMS with multiple recipients in iOS 4.0 ready for sending the user still has to interact and touch the actual send button on the compose screen. An app cannot send SMS messages without the user being involved and having the chance to approve b

Re: Please help, i'm newbe in cocoa + oracle programming.

2010-03-25 Thread Mark Woollard
Are you compiling your Objective-C code as ObjC++ or straight ObjC? Name your source files with .mm extension to indicate ObjC++. Also read the following: http://developer.apple.com/Mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocCPlusPlus.html Mark On 15 Mar 2010, at 07:08, Pa

Re: iPhone: badge icon for a button in toolbar

2010-02-11 Thread Mark Woollard
See UITabBarItem's badgeValue property. Regards Mark On 11 Feb 2010, at 13:40, Eric E. Dolecki wrote: > I know about placing a badge on the homescreen application icon, but is > there a way to set this up for a button in a toolbar... or do I just use my > own UIView to do the same thing and floa

Re: [iPhone] Sample code for live camera stream?

2009-12-15 Thread Mark Woollard
They place UI elements over the video feed provided on screen by the built in video capture window, but they don't have access to the actual video data. Mark On 15 Dec 2009, at 16:04, Gabriel Zachmann wrote: >> There is not currently API for this. The API allows you to place overlays on >> the

Re: Creation date of Feb 14th 1946 - Why?

2009-11-16 Thread Mark Woollard
It was the day ENIAC, the first general purpose electronic computer was revealed to the world. I guess you can't have a digital file created before that ;-) Mark On 16 Nov 2009, at 17:16, Matt Gough wrote: > Can someone let me know if there is something magical about a file having its > creat

Re: [iPhone] Application running for the very first time...

2009-10-01 Thread Mark Woollard
No they aren't - NSUserDefaults is the approach I use for this kind of thing Sent from my iPhone On 1 Oct 2009, at 09:32, Todd Heberlein wrote: I am wondering if there is a simple way to find out when my application is running for the VERY FIRST TIME on an iPhone? So that I can set an int

Re: how to pass arguments by reference

2008-12-10 Thread Mark Woollard
You can't use passing by reference in C or Objective-C, you can with C+ + or Objective-C 2.0, for example the following will compile: test.mm #import // C++ function int func( int& a ) { return a * 2; } // Objective-C class @interface test : NSObject { } // Method using reference - (int