NSUserNotification + Custom Icon?

2013-11-12 Thread Jeremy Matthews
In 10.9, NSUserNotification supports a new property contentImage, which allows the use of a graphic within the notification itself. It's nice, but not exactly what I was wishing for (puts it on the right side of the notification window). I was hoping that there might be a way to usurp the

Re: Helper tool

2013-09-13 Thread Jeremy Matthews
I'm getting prepped for writing few of those...any good sample code out there? I was having some issues compiling Apple sample code from a version of Xcode that shall not be named...throwing bizarre errors. Figured I'd start with some sane, validated goodness. Thanks, j

SMJobBless

2012-04-26 Thread Jeremy Matthews
Does anyone out there use SMJobBless to interact with the Mac OS X to create/destroy, and load/unload launchdamons/agents? Really looking for sample code to make sure I'm doing things correctly...sometimes my jobs go wonky. Apple docs have not been updated in about 2 years time... Thanks,

Calendar heatmap-ness ala iCal

2012-04-02 Thread Jeremy Matthews
So for one of my apps I'd like to create a ical-like heatmap (if you switch to the year view in iCal it shows daily activity via color-coding) based on some internal data...I was wondering if there were any ideas on how to get a view like that without having to reinvent the wheel...any ideas?

Re: iCal Integration

2012-02-24 Thread Jeremy Matthews
To: Jeremy Matthews jeremymatth...@mac.com Cc: list-cocoa-dev Development cocoa-dev@lists.apple.com Subject: Re: iCal Integration Message-ID: 4ad9e40b-977e-4901-a1cb-a068efd8f...@novamind.com Content-Type: text/plain; charset=windows-1252 I don't see anything in the API to detect it - I have

iCal Integration

2012-02-23 Thread Jeremy Matthews
I have a simple app which, as a byproduct, creates tasks and events in iCal. Prior to 10.7, the user would choose from a popup list populated by all calendars within the [CalCalendarStore defaultstore], which worked great and created both events and tasks perfectly fine. Now, in 10.7, it seems

Re: Overwhelming Options

2011-09-01 Thread Jeremy Matthews
It's an internal app for power users...and its been a struggle to reduce it so far. I've been told that the current options need to stay putso no reducing for the moment. ...but I don't like it either... Thanks, j On Sep 1, 2011, at 1:51 PM, Jens Alfke wrote: On Sep 1, 2011, at 9:58

Re: Overwhelming Options

2011-09-01 Thread Jeremy Matthews
really work. So when I make significant changes its not usually a good thing...so I may be fighting a losing battle anyhow. Thanks again, jeremy On Sep 1, 2011, at 4:42 PM, Quincey Morris wrote: On Sep 1, 2011, at 11:48 , Jeremy Matthews wrote: It's an internal app for power users

Read Protected File

2011-02-04 Thread Jeremy Matthews
Hey folks, I'm trying to read a protected file (one which I don't have rights to access). The only way I know around this is with an Authorization routine + NSTask, or to create a Helper Tool. Is there a better way? Also, I'm using auth in my own code for something else, but I'd love some

lots of find/replace in text file

2011-01-22 Thread Jeremy Matthews
So...the app I previously mentioned, ala Mad Libs...I now have lots more text to replace within the file (new additions). Besides using find/replace using NSScanner and NSStrings' stringByReplacingOccurrencesOfStringis there a better way, to perform a slew of find/place operations with a

Store a file vs create on the fly?

2011-01-18 Thread Jeremy Matthews
So I have a simple app which, in essence, creates a text file with some items determined by the user (kind of like an old-fashioned Mad Libs page). Most of the file does not change...I just change a few portions based upon checkbox states, textfield contents, etc. Question is: should I have

SRV record lookup

2010-10-08 Thread Jeremy Matthews
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 experiencefrom this link I can see that there are indeed a few different methodsany ideas?

SCPreferencesLock issue?

2010-09-17 Thread Jeremy Matthews
For some reason, I can't seem to get a lockwas wondering if anyone else has been here before: AuthorizationRef auth = nil; OSStatus authErr = noErr; AuthorizationFlags rootFlags = kAuthorizationFlagDefaults | kAuthorizationFlagExtendRights |

Re: SCPreferencesLock issue?

2010-09-17 Thread Jeremy Matthews
, Jeremy Matthews wrote: For some reason, I can't seem to get a lockwas wondering if anyone else has been here before: I haven't dealt with this API before, but the below code is a mess. You also don't explain what you mean by I can't seem to get a lock. The logging statements

OT: Back To School

2010-09-14 Thread Jeremy Matthews
So I'm very likely going back to school for my CS degree... Since I already work, I'm looking for an online class, most likely development (hence this email). I was wondering if anyone had used any schools that leaned towards the iOS/Cocoa development environment, which they felt they

Can I connect?

2010-09-04 Thread Jeremy Matthews
In my application (desktop) I am checking for a network connection, and I've seen people use a few different techniques... 1) NSURL 2) SCNetworkReachabaility 3) NSSocketPort Anyone have experience or best practices on using one vs another? Thanks, j

Re: settings computer name, host name, local host name

2010-08-07 Thread Jeremy Matthews
Stephen, Thanks - I had just dipped into the framework to get info, but the SCPrefs are definitely a little more work..funny thing about NSHot is that most the methods are deprecatedbummer. -j On Aug 6, 2010, at 10:52 PM, Stephen J. Butler wrote: On Fri, Aug 6, 2010 at 4:22 PM, Jeremy

settings computer name, host name, local host name

2010-08-06 Thread Jeremy Matthews
So, I know there are a number of ways to GET computer name, local host name, and host name (this one only by scutil??) - is there a method folks out there are using to SET each of these? Other than NSTask and scutil??? Thanks, j ___ Cocoa-dev mailing

NewStyle Preferences

2010-06-20 Thread Jeremy Matthews
In my project I have some preferences in a tabview style, but I'd like to move towards a more mac-like interface for this (Safari, Mail)...probably using NSToolbar. I've seen examples (usually pretty dated) that reference a few different styles: 1) Tabless NSTabView using a Toolbar with

Mail Frameworks

2010-06-02 Thread Jeremy Matthews
So...I'm working on an app that needs an email framework to send messages...right now I'm using MailCore, and I hear good things about EDMessage as well...where I am at now I need to send attachments and neither is very forthcoming on support details there (or examples) - so I am reading

Re: Mail Frameworks

2010-06-02 Thread Jeremy Matthews
Mac OS... Sent from my iPhone On Jun 2, 2010, at 3:25 PM, Laurent Cerveau lcerv...@me.com wrote: Is this on MacOS or iPhoneOS? I think the way to go on MacOS is through the scripting bridge laurent Sent from my road phone On Jun 2, 2010, at 8:57 PM, Jeremy Matthews jeremymatth

swipe gestures

2010-05-16 Thread Jeremy Matthews
So I'm working them into my app, and I noticed that I can't seem to use them in order to select a tabviewitem, but I can appear to do other things (logging, alerts, etc)? I checked my IBOutlets and everything is kosher there... Is there a limitation here I am unaware of? I can use tabviewitem

Modal Window with dynamic nstextfield

2010-04-05 Thread Jeremy Matthews
I have a modal window with code to update both a progress bar and corresponding text...the progress bar gets updated just fine but the textfield never does (except if I re-run the method the last string I pushed to the textfield from the previous run does appear).My understanding was that if

Re: Modal Window with dynamic nstextfield

2010-04-05 Thread Jeremy Matthews
Oh dear? Sent from my iPhone On Apr 5, 2010, at 4:47 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Mon, Apr 5, 2010 at 10:15 AM, Jeremy Matthews jeremymatth...@mac.com wrote: for (mmm=0;mmm150;mmm++) { [progressIndicator displayIfNeeded

Re: Modal Window with dynamic nstextfield

2010-04-05 Thread Jeremy Matthews
On Apr 5, 2010, at 6:18 PM, Kyle Sluder wrote: On Mon, Apr 5, 2010 at 3:12 PM, Jeremy Matthews jeremymatth...@mac.com wrote: Oh dear? Yeah. It's a pretty heavy topic. Your use of a for loop inside a modal runloop to perform a lengthy operation leads me to believe you'll be starting

NSButton and NSEvent

2010-02-27 Thread Jeremy Matthews
So I have a application that I am getting ready to put some finishing touches on, but there are one or two things I'd like to do differently...er, better. It is a simple tool (Cocoa Desktop app) with a slew of checkboxes (around 40 in a separate window) that act as parameters on a command.

Re: NSButton and NSEvent

2010-02-27 Thread Jeremy Matthews
into this. -Steven On Sat, Feb 27, 2010 at 8:46 AM, Jeremy Matthews jeremymatth...@mac.com wrote: So I have a application that I am getting ready to put some finishing touches on, but there are one or two things I'd like to do differently...er, better. It is a simple tool (Cocoa Desktop

NSPopupButton URLs

2009-12-27 Thread Jeremy Matthews
So I have an idea or two, but nothing graceful, so I wanted to know the best way of doing this I have an xcode 3.2.1 (10.6+ only project), which has a method that has an optional URL as a parameter. This is mostly a take on the calendarstore framework...I just want to offer the ability for

NSPathControl, Bindings and Shared User Defaults

2008-06-18 Thread Jeremy Matthews
Anyone out there binding multiple NSPathControls in IB? I can do it programatically, but when I attempt to use multiple NSPathControls the only item that ends up in the users' plist is the most recent one modified... I'm using a newer version of Xcode Tools, but the same thing happens

Re: Cocoa Training....

2008-05-21 Thread Jeremy Matthews
I am not a full-time developer, but I have taken a few IT/programming coursesthen I went to BNR to get some education. - The first few chapters/lessons start easy, but it ramps up quickly - Get the book beforehand and learn as much as possible - Location is fantastic and far enough away