(no subject)

2010-06-18 Thread Brad Peterson
http://kvlbehqiqu.modestmuch.ru ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update y

(no subject)

2010-06-16 Thread Brad Peterson
http://bit.ly/bH7V0j ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscri

MJPEG streams, webkit, and NSImage

2009-04-12 Thread Brad Peterson
Hi all, I recently got a wireless security camera, and although I can view it in Safari just fine, I was hoping to be able to integrate the feed into some existing code I have. I've seen a couple of posts on this list about webkit, and how difficult it was (is?) to use webkit to work with MJ

Custom modal panel, like NSSavePanel/NSOpenPanel

2009-03-18 Thread Brad Peterson
Hi all, I would like to implement a password prompt panel class similar to NSSavePanel/NSOpenPanel, which can be shown without having to implement didEndSelectors and delegates each time. That is, I want a class that displays a password prompt, which I can show using syntax like:

Re: UI help: visibly disabling NSImageView

2008-11-07 Thread Brad Peterson
> > Does anyone have any ideas on how to _visually_ > indicate that an NSImageView is not editable? Since it > doesn't really do anything different when it's > editable or not editable, it's tough for the user to > tell which state is which. > > It's trivial to create a subclass of NSImageView that

UI help: visibly disabling NSImageView

2008-11-07 Thread Brad Peterson
Hi all, Does anyone have any ideas on how to _visually_ indicate that an NSImageView is not editable? Since it doesn't really do anything different when it's editable or not editable, it's tough for the user to tell which state is which. I'm thinking that maybe there's a way to make the image s

Programmatically change screensaver

2008-10-30 Thread Brad Peterson
Hi, Does anyone know how to programatically change the user's current screensaver? I've tried applescripts and poking around the ~/Library/Preferences/ByHost folder, but I can't find anything. I was hoping there's a proper API or at least a known (stable?) preferences file somewhere... Thank

CIPageCurlTransition and starting corner

2008-09-28 Thread Brad Peterson
Hi all, I've been through the archives, and done quite a bit of playing around with the sample code, too, but I can't figure out how to change CIPageCurlTransition's starting corner. In all of the stuff I've seen so far, the page curl always starts in the upper left corner, which seems somehow

Carriage returns and NSXMLParser

2008-04-22 Thread Brad Peterson
Hi, Have there been any recent changes to NSXMLParser with respect to carriage returns? I haven't noticed it previously, but I'm suddenly seeing a lot of cases where carriage returns embedded in data are returned as spaces by the parser. That is: Is read in as if it were: I know that whitesp

Detect phone number in NSString

2008-04-16 Thread Brad Peterson
Hi all, Like many cell phones are doing these days, I want to be able to detect phone numbers in NSStrings and highlight them in some way for the user. So, if I had some text, say : "Hi Tom, Please call Cheryl at 444-555-6767 and she can get you that info..." I want to be able to "know" that 444

Why might DO/NSConnection fail?

2008-04-10 Thread Brad Peterson
Hi all, I've got a user reporting a crash in one of our components. The truly weird thing, for me, is that this is a crash in the DO portion of our code, which would seem to indicate that NSConnection wasn't able to find the DO server. (Now, this is odd in and of itself, since the server launche

Re: How do I embed a font in an app?

2008-04-07 Thread Brad Peterson
Hi, Just embed it as a resource, and then use the code below to load it for use. You can just reference it by name from then on (well, as long as your app is running) as you would any other font. (Where "kDefaultFontFile" is the name of your TTF file. Ex: @"MyFont.TTF") HTH! B

More fun with C++

2008-04-03 Thread Brad Peterson
Hi, Seems like I'm once again behind the "mixing Obj-C with C++" 8-ball. :( This time, I'm getting compile errors in the .h file of my C++ class. Specifically, just this much code: using namespace std; class CXLSWriter { Generates 3 errors, and one warning: error: syntax error befor

Panel in framework

2008-03-04 Thread Brad Peterson
Hi all, Is it possible to connect a panel whose resources & code live in a framework to a window in an executable using that framework? That is, I want to display the panel modally, but the panel only exists as part of a framework I'm using in my app. Any pointers would be a great help! Thanks!