Re: NSPredicate and NSString with whitespace gives runtime error

2013-04-22 Thread Ben Gollmer
On Apr 22, 2013, at 10:58 AM, Koen van der Drift wrote: > Is there a way I can use an NSPredicate to search an NSString that contains > whitespaces (a sentence)? If I use this: > > NSPredicate *functionPredicate = [NSPredicate predicateWithFormat: > @"function CONTAINS[cd] %@", searchS

Re: IOKit device help

2013-03-06 Thread Ben Gollmer
On Mar 3, 2013, at 8:58 PM, Jason T. Slack-Moehrle wrote: > I am using: IOServiceGetMatchingServices > > kr = IOServiceGetMatchingServices(kIOMasterPortDefault, > > IOServiceNameMatching("AppleUSBEHCI"), &io_objects); > > I am looking for how I find out information about the internal HD as t

Re: Templates for program output

2012-11-10 Thread Ben Gollmer
On Nov 10, 2012, at 1:50 AM, Martin Hewitson wrote: > Dear list, > > I have an app which is used for compiling agendas. The output is an html page > with the agenda formatted in tables, etc. Currently I just build an NSString > containing all the html. Clearly this is limited. > > I'd like to

Re: NSData, CFData maximum length question

2012-03-21 Thread Ben Gollmer
On Mar 22, 2012, at 2:12 AM, Seth Willits wrote: > On Mar 21, 2012, at 10:49 PM, Seth Willits wrote: > >> On Mar 21, 2012, at 6:00 PM, Grandinetti Philip wrote: >> >>> I am confused about different behavior I'm seeing with CFData and NSData. >>> If I create a new project in XCode 4.3.1 as a

Re: Distributed Notification observing change in Lion?

2011-09-07 Thread Ben Gollmer
On Sep 7, 2011, at 11:48 AM, Matt Gough wrote: > I have an observer for a Dist notification in my app. In Lion, my observer > doesn't actually get called until I interact with my app in some way (i.e > show a menu, or click on a window). Until I do that it doesn't get delivered. > > I have chec

Re: log file in apple system log

2011-05-16 Thread Ben Gollmer
On May 16, 2011, at 7:23 PM, Rainer Standke wrote: > Hello, > > I am trying to have my Mac app log info in such a way that a log file will be > visible in the Console app, and the logfile is managed by syslogd. > > I am playing with asl_log and friends, and I can make things appear in the > sy