Creating Vcards on iPhone

2009-10-12 Thread Pierce Freeman
Hi Everyone: On the Mac, there is this function to create Vcards: initWithVCardRepresentation:. However, I have not heard of a method that replicates this behavior on the iPhone. As the built-in Address Book app can do it, I assume there must be a way that isn't too complex. Is there some frame

Dynamically Positioning Resized WebView

2010-07-10 Thread Pierce Freeman
Hi Everyone: In my application, I am placing multiple instances of WebView right below each other in a NSWindow. And in order to show the whole content without scrolling, I am resizing the web views to the size of their content in (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *

Hidden API?

2009-05-31 Thread Pierce Freeman
relaunching it. Sincerely, Pierce Freeman ___ 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

Searching in NSArray

2009-06-05 Thread Pierce Freeman
Hi Everyone: I am most likely overlooking this function, but I just can't seem to find it in the documentation. I am looking for some way to search an NSArray listing for one string that is part of multiple objects in the array. This search then returns the number of objects that contained that

Re: Searching in NSArray

2009-06-05 Thread Pierce Freeman
int (or NSInteger) counter to keep track of > which object it is. > > Oh, you could also do [NSArray indexOfObject:]. if it returns NSNotFound, it's > not in the array. > > On Fri, Jun 5, 2009 at 11:36 AM, Pierce Freeman > wrote: >> Hi Everyone: >> >

Re: Searching in NSArray

2009-06-05 Thread Pierce Freeman
Kyle: This looks like an interesting lead, I'll look into it later. On 6/5/09 8:52 AM, "Kyle Sluder" wrote: > Look at the predicate programming guide, documentation for > NSPredicate, and -[NSArray filteredArrayUsingPredicate:]. > > --Kyle Sluder

Blur NSImage

2009-06-13 Thread Pierce Freeman
Hi Everyone: I will say before hand that I don't really want to dive into Quartz, etc. at the moment and simply want to stick with the "image basics". Anyway, I am making a fullscreen app that has window with a NSImageView that fills the screen. I only say this as it may change how to address th

Re: Blur NSImage

2009-06-14 Thread Pierce Freeman
Kyle: Thanks for your suggestion. I ended up doing it in Interface Builder, and it works great! Thanks! On 6/13/09 8:37 PM, "Kyle Sluder" wrote: > Look into Core Image filters. You can apply them to any layer-backed > view. You can even do it from within Interface Bulder, on the View > Ef

Get Key Commands in Fullscreen

2009-06-14 Thread Pierce Freeman
Hi Everyone: I am following the steps described here: http://www.cocoadevcentral.com/articles/28.php to make a fullscreen application but am running into a problem when I want to get key input. For some reason, it seems that when you convert the Panel to take up the screen, you also loose the

Programmatically Picking Elements

2009-06-25 Thread Pierce Freeman
Hi Everyone: I am wondering if there is some way to pick the element type (and amount of them) shown in a xib file. I am working on an application that needs to take data from the server, and there are usually differing amounts of it. For example, User A chooses on the web for there to be 10 NSTe

Re: Programmatically Picking Elements

2009-06-25 Thread Pierce Freeman
Hi Kyle: While there may be a more official name for them (outlets, maybe?), I consider an "element" to be any element that goes on the screen. For instance a NSTextField or a NSImageView. I am more going for creating a UI on the server and then displaying it on the client side. Does this still

Re: Programmatically Picking Elements

2009-06-27 Thread Pierce Freeman
dvantage of your situation: iterate frequently, be > responsive to customer needs, and don't be afraid to say "no" to crazy > requirements proposals -- including your own. That's very good advice, especially with dealing with some of my clients. One wants some fading elemen

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
;I. Savant" wrote: > On Jul 5, 2009, at 6:18 PM, Pierce Freeman wrote: > >> I am making an application that has a choice of what function the >> user wants >> to perform. When the user clicks on their choice, I want a NSView >> to take >> on the content

Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
Hi Everyone: I am making an application that has a choice of what function the user wants to perform. When the user clicks on their choice, I want a NSView to take on the contents of a specific nib file. I assume there must be a way (hopefully) easy that this is accomplished with, as most applic

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
That makes sense - I'll definitely try that! And just asking, but from the first link you sent, what does this return? [NSBundle loadNibNamed:@"someNibFile" owner:d]; My assumption is that it's not a view. On 7/5/09 3:31 PM, "I. Savant" wrote: > On Jul 5,

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
You're right, I was looking in the wrong place. A good Google search (versus the built in documentation) did the trick. For future reference, it's under "NSBundle Additions" versus the plain "NSBundle". On 7/5/09 3:45 PM, "I. Savant" wrote: > On Ju

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
s the application can no longer find the view and then crashes. Any suggestions? On 7/5/09 3:21 PM, "I. Savant" wrote: > On Jul 5, 2009, at 6:18 PM, Pierce Freeman wrote: > >> I am making an application that has a choice of what function the >> user wants >> to perform

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
documentation by Title > instead of by API? If I search by API and type "loadNibNamed" I > immediately get the NSBundle Additions API, however if I search by > Title I get nothing. > > Hope this helps, > > Kiel > > On 06/07/2009, at 8:55 AM, Pierce Freeman wr

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
f you plan to reuse it, be sure >> to retain it before sending this message and to release it as appropriate >> when adding it as a subview of another NSView. > > > --Andy > > On Jul 5, 2009, at 7:26 PM, Pierce Freeman wrote: > >> I am finally reverting to

Re: Switching Contents of NSView

2009-07-05 Thread Pierce Freeman
Joel: Thanks for the link - I'll definitely check it out. On 7/5/09 6:50 PM, "Joel Norvell" wrote: > > Pierce, > > As an adjunct to "document reading skills," I've found that there's no > substitute for a class browser. > > Andy Lee has written Appkido, an excellent class browser for Cocoa!

NSScrollView Not Updating

2009-07-25 Thread Pierce Freeman
Hi Everyone: I am drawing elements dynamically to the screen, and attempting to put them in a NSScrollView. However, when I add them to the view inside the NSScrollView, it doesn't seem as if the scroll view knows that there is more contents. The elements simply go off of the top of the window,

Re: NSScrollView Not Updating

2009-07-25 Thread Pierce Freeman
> You need to post your code. I'll put my "main" code at the end of this email. > > It sounds like you've overridden -drawRect: to draw custom contents. > The view's frame determines how the scroll view behaves; if you're > just drawing all over the place in -drawRect: without properly calling >

Re: NSScrollView Not Updating

2009-07-26 Thread Pierce Freeman
> If you can't answer this question, you need to cover some basic > fundamentals. "Did you override -drawRect:" is a very simple question > that you can answer by simply looking at what code you've written. I kind of figured that I didn't do it, as I didn't write any code that would have caused t

Re: NSScrollView Not Updating

2009-07-26 Thread Pierce Freeman
Thanks Dave, it works great now. On 7/26/09 9:34 AM, "Dave Keck" wrote: >> seems to come down.  Is there some way to stop this from happening, in other >> words, is there a way to "nail" an element in place. > > As Kyle suggested: > http://devworld.apple.com/documentation/Cocoa/Conceptual/Coco

Disabling Exposé in SystemUIMode

2009-08-05 Thread Pierce Freeman
Hi Everyone: I am wondering if anyone knows of a way to disable Exposé in SystemUIMode. I am using this class to create a kiosk-based application and don't want the user to be able to switch between other windows. If there isn't a way to do this inside the class, is there another class that can a

Re: Disabling Exposé in SystemUIMode

2009-08-05 Thread Pierce Freeman
Hi Ricky: Which version of OS X are you using? With the latest of Leopard, it just doesn't seem to work. On 8/5/09 7:34 PM, "Ricky Sharp" wrote: > > On Aug 5, 2009, at 8:45 PM, Pierce Freeman wrote: > >> I am wondering if anyone knows of a way to disable Expo

Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
version I was using still did not have it enabled. I was wondering if it worked on Leopard at all, and based on your reply it does. So I don't have much idea as to what to try now. On 8/6/09 7:56 AM, "Sean McBride" wrote: > On 8/5/09 7:39 PM, Pierce Freeman said: > >>

Change Opacity of Image

2009-08-06 Thread Pierce Freeman
Hi Everyone: I am looking for an easy way to fade into one photo from another photo. In other words, from the middle "point", you can see both of the photos on top of each other to compare the changes. I am currently using Quartz to do this, but am running into a lot of trouble with that, so I a

Re: Change Opacity of Image

2009-08-06 Thread Pierce Freeman
Hi Pavel: Thanks for the suggestion. How would you suggest I get the NSImage to the screen, a custom NSView, NSImageWell, etc? On 8/6/09 10:29 AM, "Pavel Dudrenov" wrote: > Look into NSImage and NSCompositingOperation. > > On Thu, Aug 6, 2009 at 10:17 AM, Pierce Free

Re: Change Opacity of Image

2009-08-06 Thread Pierce Freeman
unches > of filters to handle compositing. > > > On Aug 6, 2009, at 1:29 PM, Pavel Dudrenov wrote: > >> Look into NSImage and NSCompositingOperation. >> >> On Thu, Aug 6, 2009 at 10:17 AM, Pierce Freeman >> wrote: >> >>> Hi Everyone: >>> &

Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
Really odd, do you think you could send me a little example to see if your same code works on my system? On 8/6/09 2:59 PM, "Ricky Sharp" wrote: > > On Aug 5, 2009, at 9:39 PM, Pierce Freeman wrote: > >> Which version of OS X are you using? With the latest of Leopa

Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
t; > On Aug 6, 2009, at 10:10 AM, Pierce Freeman wrote: > >> Yeah, I completely copied his code and inserted it into my project. >> Even >> odder, it doesn't allow the Apple-Tab function (which is what it is >> supposed >> to do) but lets Exposé work just fi

Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
;Eric Schlegel" wrote: > > On Aug 6, 2009, at 8:10 AM, Pierce Freeman wrote: > >> Hi Sean: >> >> Yeah, I completely copied his code and inserted it into my project. >> Even >> odder, it doesn't allow the Apple-Tab function (which is what it i

Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
> > On Aug 6, 2009, at 4:03 PM, Pierce Freeman wrote: > >> Hi Eric: >> >> I am using the four finger swipe gesture on a Unibody MacBook Pro >> and the >> key. Neither of which SetSystemUIMode overrides. > > Yes, that's the problem. SetSystem

Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
> > On Aug 6, 2009, at 4:03 PM, Pierce Freeman wrote: > >> Hi Eric: >> >> I am using the four finger swipe gesture on a Unibody MacBook Pro >> and the >> key. Neither of which SetSystemUIMode overrides. > > Yes, that's the problem. SetSystem

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
>Hmm, yes, the keystroke to invoke Exposé should still be blocked. I can't say offhand why it wouldn't be. Hmm... Interesting. I¹m not quite sure either ­ maybe something with the key I¹m using... F3? > You can actually capture the display with the CGDisplayCapture API - Exposé > can't be invoke

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
Hi Ken: > I'm not quite clear on what you're saying here. When you say "without > using this", do you mean without actually capturing the display? Yeah, that is exactly what I'm talking about. > Why don't you want to use the display capture API[1] if you're looking to > achieve the capture of

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
> Yes, that's the problem. The hardware keys aren't blocked either. In any event, I've submitted a bug report about the issue and hopefully it will be resolved in Snow Leopard. I'm not betting on it, but it may just make it through. > If you absolutely must disable Expose, CGDisplayCapture is th

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
> It won't be, sorry. Yeah, that's kind of what I figured. But it would be pretty cool if it made it into, like, 10.6.5 or something like that. > I don't have any good recommendations. It might be possible to > intercept and suppress the physical Exposé key on the keyboard using > some IOKit cal

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
> > I take that back! It looks like this is already fixed in SnowLeopard. > Wow, I think that just made my day. So, both of them are fixed? In other words, the gestures and the hardware key? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
> In my testing on my MacBook Pro running a recent build of SnowLeopard, > yes. SnowLeopard has not been released to customers yet, so of course > there's always a possibility of something changing, but it does seem > to work properly at the moment. Further discussion of SnowLeopard > should probab

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
Very true, so I guess I'll have to weigh my options. Thanks to everyone for their help! On 8/7/09 10:08 AM, "Sean McBride" wrote: > On 8/7/09 9:47 AM, Pierce Freeman said: > >> I may just have to make my app Snow >> Leopard only then. After all, it&#x

Name to PSN

2009-02-21 Thread Pierce Freeman
Hi everyone. I am having a little trouble finding a way to go from the name of a process to its PSN. Maybe it's just something I have overlooked, but all the documentation seems to be going from the PSN to its name. My goal is to use the name of a particular process and "kill it" using Apple Eve

Re: Name to PSN

2009-02-21 Thread Pierce Freeman
name? And I assume you would get this by sorting through NSWorkspace as well. Pierce On 2/21/09 9:06 AM, "Ken Thomases" wrote: > On Feb 21, 2009, at 10:57 AM, Pierce Freeman wrote: > >> I am having a little trouble finding a way to go from the name of a >> proces

Re: Name to PSN

2009-02-21 Thread Pierce Freeman
Just got a chance to look into your replies... So here are my questions/comments. > A loop, sure. The same way you enumerate any array. Fast enumeration > if you're targeting Leopard, or using an index or NSEnumerator. Okay, sounds good. > A bundle ID is guaranteed to be unique and stable. W

Re: Name to PSN

2009-02-22 Thread Pierce Freeman
> Is there one specific application that you will be quitting? You can > look into its application bundle at its Info.plist file to get its > bundle ID. It's not a application per say, but a daemon. At least I think... It's rather confusing. You see, the dock is a daemon (I think) but there is

Re: Name to PSN

2009-02-22 Thread Pierce Freeman
Very true, very true. Is the dock considered an agent (or daemon) anyway? It is on the screen, but I don't think I'd classify it as an application. It's kind of confusing. @_@ Pierce On 2/22/09 1:46 PM, "Kyle Sluder" wrote: > On Sun, Feb 22, 2009 at 3:37 PM, Pier

Re: Name to PSN

2009-02-27 Thread Pierce Freeman
quit event for it to restart). Does anyone have any ideas? On 2/22/09 10:14 AM, "Ken Thomases" wrote: > On Feb 21, 2009, at 10:21 PM, Pierce Freeman wrote: > >> Is there some panel in Activity Monitor that I'm missing that shows >> you the Bundle ID of >>

Re: Name to PSN

2009-02-28 Thread Pierce Freeman
Since the dock is an application (at least based on what you/I am saying) why wouldn't it show up in NSWorkspace? On 2/27/09 10:53 PM, "Andrew Farmer" wrote: > On 27 Feb 09, at 22:49, Kyle Sluder wrote: >> On Sat, Feb 28, 2009 at 1:41 AM, Pierce Freeman >> w

Re: Name to PSN

2009-02-28 Thread Pierce Freeman
Then would there be some way to either "trick" the system into quitting it in Cocoa, or simply using another way other then Apple Events? On 2/28/09 12:42 PM, "Scott Ribe" wrote: >> Since the dock is an application (at least based on what you/I am saying) >> why wouldn't it show up in NSWorkspa

Re: Name to PSN

2009-02-28 Thread Pierce Freeman
That makes sense... So we have found out that the dock is definitely an app. After my reinstall of Xcode finishes, I'll see if I can quit it. If I can't, I'll let you all know. On 2/28/09 12:59 PM, "Paul Sanders" wrote: >> Then would there be some way to either "trick" the system into quitting

Re: Name to PSN

2009-02-28 Thread Pierce Freeman
Then I'm guessing that NSWorkspace wouldn't be the right item for this task. What substitute that shows LSUIIElements would you recommend? On 2/28/09 1:07 PM, "Nick Zitzmann" wrote: > > On Feb 28, 2009, at 1:25 PM, Pierce Freeman wrote: > >> Since the doc

Re: Name to PSN

2009-02-28 Thread Pierce Freeman
I thought that based on the info, you couldn't do it using Apple Events... Apparently I misinterpreted. I'll try this in a little bit and I'll post back my results. On 2/28/09 1:22 PM, "Scott Ribe" wrote: >> Then would there be some way to either "trick" the system into quitting it >> in Cocoa

Re: Name to PSN

2009-02-28 Thread Pierce Freeman
First off I would just like to thank everyone that helped me through this issue. I really wouldn't have been able to figure it out without all of you. In the end, using Apple Events with Apple Script seems to work very well... And it is very easy to manage. Thanks again! _

Path for writeToFile

2009-03-02 Thread Pierce Freeman
Hi everyone: I am running into a bit of a problem when trying to use writeToFile with NSDictionary. My problem is that I want to be able to get a file on the Desktop but I can't find a way to do that without knowing the directory structure of the user. If anyone could point me in the right direc

Run Function At Intervals in Cocoa

2008-10-13 Thread Pierce Freeman
Hi everyone. I am fairly new to Cocoa, so I apologize if this is a very basic question (but after searching for awhile I still can't find an answer). Anyway, I am wondering how I can create a function that will run at intervals. What the function would do is scan which applications are open, and

NSAlert?

2008-10-18 Thread Pierce Freeman
Hi everyone. I have been attempting to create a NSAlert popup and get the result (so it can run an if statement) for the last few hours, but I still can't get it to work. My current code is below, if anyone wants to have a look see... If anyone could point me in the right direction, it would be m

Re: NSAlert?

2008-10-18 Thread Pierce Freeman
PROTECTED]> wrote: > > On Oct 18, 2008, at 14:35 , Pierce Freeman wrote: > >> Hi everyone. >> >> I have been attempting to create a NSAlert popup and get the result >> (so it >> can run an if statement) for the last few hours, but I still can't >

Re: NSAlert?

2008-10-18 Thread Pierce Freeman
Wow, I am completely out of it today. ;) Thanks for your help, Pierce F. On 10/18/08 12:46 PM, "Jason Coco" <[EMAIL PROTECTED]> wrote: > > On Oct 18, 2008, at 15:43 , Pierce Freeman wrote: > >> Thanks for your help. However, Xcode gives me this warning when

Passing Variables to AppleScript

2008-10-18 Thread Pierce Freeman
Hi everyone. I am attempting to create a little application that will take an application name from the user, and then close it for them. I am attempting do this by getting the string in Cocoa, then passing this to AppleScript... But I don't know if Cocoa can pass variables to AppleScript. I ima

Getting Styluses/Track Pad Input in Cocoa

2008-10-26 Thread Pierce Freeman
Hi everyone. I am currently looking into if there is some way to get input from a styluses using Cocoa. I have seen that there is a fair bit of information using Carbon but so far I haven't seen any that cover Cocoa. In addition I am looking to get user input based on the track pad. For example

Re: Getting Styluses/Track Pad Input in Cocoa

2008-10-26 Thread Pierce Freeman
ml > > HTH > -- Kevin > > Kevin Gessner > http://www.kevingessner.com > [EMAIL PROTECTED] > > > > > On Oct 26, 2008, at 6:44 PM, Pierce Freeman wrote: > >> Hi everyone. >> >> I am currently looking into if there is some way to get inpu

Compare images in Cocoa

2008-10-30 Thread Pierce Freeman
Hi everyone. I am wondering if there is some way to compare two images in Cocoa, and then somehow spit out a percent of how similar they are. The only way I could think of is comparing every pixel, but this seems like it would take a long time, and even so I have no idea how to go about doing that.

Re: Compare images in Cocoa

2008-10-31 Thread Pierce Freeman
10:04 PM, "Graham Cox" <[EMAIL PROTECTED]> wrote: > > On 31 Oct 2008, at 2:21 pm, Pierce Freeman wrote: > >> Hi everyone. I am wondering if there is some way to compare two >> images in >> Cocoa, and then somehow spit out a percent of how similar they

Signature Recognition in Cocoa

2008-11-02 Thread Pierce Freeman
I have been looking at various open source projects/sites but still can't find a way to check two signatures to see if they are the same in Cocoa. For example: On setup, "User A" writes his name on his tablet, then "User B" tries to sign in using an imitation signature, but it will return an w

Stop Power to USB port

2008-11-06 Thread Pierce Freeman
Hi everyone. I am working on a project that involves when a USB port is requesting a certain amount of energy, it will shut it off (and then turn it on if the user says it is okay). I have gotten the first part done (checking if the port is using to much power) but I have not figured out to shu

Re: Stop Power to USB port

2008-11-06 Thread Pierce Freeman
Okay, I will place it there. :) Sincerely, Pierce F. On 11/6/08 9:08 PM, "Rob Keniger" <[EMAIL PROTECTED]> wrote: > > On 07/11/2008, at 2:44 PM, Pierce Freeman wrote: > >> I am working on a project that involves when a USB port is >> requesting a >

Re: Signature Recognition in Cocoa

2008-11-09 Thread Pierce Freeman
rence signature. The output of the DTW algorithm > is a distance to each template, which you can threshold to tell OK, NOT TOO > FAR, DIFFERENT. > > To get input to that algorithm in Cocoa, well, an NSView subclass + handling > events, I guess. > > Raphael > >

Call getElementById in Cocoa

2008-11-24 Thread Pierce Freeman
x27;s code). The use would be the application getting the value of a hidden field, and then outputting it to the user. Sincerely, Pierce Freeman -- Pierce Freeman [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Call getElementById in Cocoa

2008-11-24 Thread Pierce Freeman
; wrote: > > Le 24 nov. 08 à 16:42, Pierce Freeman a écrit : > >> Hi everyone. >> >> I am wondering if there is some way to call the getElementById on a >> website >> through Cocoa, and then return the value of the field. I am >> assuming it >>

Re: Call getElementById in Cocoa

2008-11-24 Thread Pierce Freeman
the native DOM API is prefered. > > Note that before calling mainFrameDocument, you should make sure the > document is loaded. There is probably a WebView delegate method that > provide this info. > > > Le 25 nov. 08 à 00:43, Pierce Freeman a écrit : > >> Does

Re: Call getElementById in Cocoa

2008-11-24 Thread Pierce Freeman
Hi Adam: Thanks for your response, though I am wondering how I could make the delegate method. I know how to do it for NSWorkspace, however not for WebKit. Sincerely, Pierce F. On 11/24/08 5:41 PM, "Adam R. Maxwell" <[EMAIL PROTECTED]> wrote: > > On Nov 24, 20

Re: Call getElementById in Cocoa

2008-11-24 Thread Pierce Freeman
R. Maxwell" <[EMAIL PROTECTED]> wrote: > > On Nov 24, 2008, at 5:53 PM, Pierce Freeman wrote: > >> Thanks for your response, though I am wondering how I could make the >> delegate method. I know how to do it for NSWorkspace, however not for >> WebKit. > > Ca

Re: Call getElementById in Cocoa

2008-11-24 Thread Pierce Freeman
Okay Adam, I think I am beginning to understand. However, I just get two problems trying to run that code: 1. error: 'request' undeclared (first use in this function) 2. warning: 'webView' may not respond to '+isLoading' Thanks for your help. Sincerely, Pier

Sort Through Commas in Cocoa

2008-11-26 Thread Pierce Freeman
Hi everyone. Assuming that you get input from user via a regular text field, I am wondering how you can sort through the commas and then save each of the words that come before the commas into a array. For example, the words below would be what the user inputted: Apple, banana, grapes Then it w

Re: Sort Through Commas in Cocoa

2008-11-26 Thread Pierce Freeman
Thanks for your reply. I understand how you would do that much, but how exactly would you do that if Apple, Banana, Grape were stored in a variable? Sent from my iPhone On Nov 26, 2008, at 6:23 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: On Nov 26, 2008, at 7:12 PM, Pierce F

Re: Sort Through Commas in Cocoa

2008-11-28 Thread Pierce Freeman
Would this still work for a NSMutable array? Sincerely, Pierce F -- Pierce Freeman [EMAIL PROTECTED] On 11/26/08 6:40 PM, "Nick Zitzmann" <[EMAIL PROTECTED]> wrote: > > On Nov 26, 2008, at 7:28 PM, Pierce Freeman wrote: > >> Thanks for your reply. I u

NSArray to NSMutableArray

2008-11-28 Thread Pierce Freeman
Hi everyone. I am wondering the correct/recommended technique to make a NSMutableArray out of a NSArray. I see online that there are ways to do this, but am not sure what is the best way. Sincerely, Pierce F. -- Pierce Freeman [EMAIL PROTECTED

Checking One Array Against Another?

2008-11-28 Thread Pierce Freeman
If (some == [arrayNewInfo count] { NSLog(@"The user has only the okay applications open"); } [END CODE] Thanks for any help. Sincerely, Pierce F. -- Pierce Freeman [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Checking One Array Against Another

2008-11-28 Thread Pierce Freeman
{ NSLog(@"The user has only the okay applications open"); } [END CODE] Thanks for any help. Sincerely, Pierce F. -- Pierce Freeman [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Checking One Array Against Another

2008-11-28 Thread Pierce Freeman
Adam: Would this work even if the two arrays weren't in the same order? Sincerely, Pierce F -- Pierce Freeman [EMAIL PROTECTED] On 11/28/08 8:35 PM, "Adam R. Maxwell" <[EMAIL PROTECTED]> wrote: > > On Nov 28, 2008, at 8:25 PM, Pierce Freeman wrote: >

Re: Checking One Array Against Another

2008-11-28 Thread Pierce Freeman
Thanks for the help, and for the link. Just wondering though, how could I tell it to run a script if they were not equal, and if the open list is lacking some of the ones in the okay list? Sincerely, Pierce Freeman -- Pierce Freeman [EMAIL PROTECTED] On 11/28/08 9:05 PM, "Adam R. Ma

Re: Checking One Array Against Another

2008-11-28 Thread Pierce Freeman
quot;okay" list Sincerely, Pierce Freeman -- Pierce Freeman [EMAIL PROTECTED] On 11/28/08 9:28 PM, "Adam R. Maxwell" <[EMAIL PROTECTED]> wrote: > > On Nov 28, 2008, at 9:21 PM, Pierce Freeman wrote: > >> Thanks for the help, and for the link. Just wonderin

Re: Checking One Array Against Another

2008-11-28 Thread Pierce Freeman
Would there be some way using the NSSet method to output a list of the applications that the user needs to close in order for the current applications to be "in the good list"? Sincerely, Pierce Freeman -- Pierce Freeman [EMAIL PROTECTED] On 11/28/08 9:28 PM, "Adam R. M

Re: Checking One Array Against Another

2008-11-29 Thread Pierce Freeman
Nov 28, 2008, at 9:59 PM, Pierce Freeman wrote: > >> Would there be some way using the NSSet method to output a list of the >> applications that the user needs to close in order for the current >> applications to be "in the good list"? > > You can use the

Re: Checking One Array Against Another

2008-11-29 Thread Pierce Freeman
Klaus: For whatever reason, Xcode is telling me that "error: void value not ignored as it ought to be" when I try to make badApplicationsSet a mutable set. Sincerely, Pierce F. On 11/29/08 10:22 AM, "Klaus Backert" <[EMAIL PROTECTED]> wrote: > > On 29.1

Re: Checking One Array Against Another

2008-11-29 Thread Pierce Freeman
On 11/29/08 10:41 AM, "Klaus Backert" <[EMAIL PROTECTED]> wrote: > > On 29.11.2008, at 19:30, Pierce Freeman wrote: > >> Klaus: >> >> For whatever reason, Xcode is telling me that "error: void value not >> ignored >> as it ought to be

Re: Checking One Array Against Another

2008-11-29 Thread Pierce Freeman
n" <[EMAIL PROTECTED]> wrote: > --- On Sat, 11/29/08, Pierce Freeman <[EMAIL PROTECTED]> wrote: > >> For whatever reason, Xcode is telling me that "error: >> void value not ignored >> as it ought to be" when I try to make >> badApplicationsSet a mu

Re: Checking One Array Against Another

2008-11-29 Thread Pierce Freeman
Okay... That makes sense. :) Thanks for your (and everyone else's) help. Sincerely, Pierce F On 11/29/08 10:58 AM, "Ashley Clark" <[EMAIL PROTECTED]> wrote: > On Nov 29, 2008, at 12:47 PM, Pierce Freeman wrote: > >> NSMutable

Re: Path for writeToFile

2009-03-03 Thread Pierce Freeman
I may be crazy here, but could you point me to some documentation? The only one I found is legacy. On 3/2/09 8:56 PM, "Graham Cox" wrote: > > On 03/03/2009, at 3:36 PM, Pierce Freeman wrote: > >> Hi everyone: >> >> I am running into a bit of a problem w

Re: Path for writeToFile

2009-03-05 Thread Pierce Freeman
t; wrote: > > On Mar 3, 2009, at 8:40 AM, Pierce Freeman wrote: > >> I may be crazy here, but could you point me to some documentation? >> The only >> one I found is legacy. > > > I think the parent meant FSFindFolder(), which will return an FSRef > for

Re: Path for writeToFile

2009-03-05 Thread Pierce Freeman
> Did you try Cocoabuilder? We've discussed FSFindFolder() on this list > in the past. > > Looks like Cocoabuilder saved the day once again. I found some code on there and it works wonderfully. > That's news to me; I haven't

Background Process?

2009-03-10 Thread Pierce Freeman
Hi everyone: I am wondering how to create a background process that will only run when the user is logged in and will run every certain minutes (a bit like Time Machine). I am also not sure in which way the action in the background process would be programmed, so any information regarding this wo

Programmatically Change Icon

2009-03-22 Thread Pierce Freeman
Hi everyone: I am wondering if there is some way to change another applications icon programmatically. The problem that I see if that every application's icon name is different and I haven't found a way to read that application's icon location or will just return a NSImage that is the icon. Tha

Re: Programmatically Change Icon

2009-03-22 Thread Pierce Freeman
27;s permission would be very disconcerting and I would probably trash that application right away. Thanks for your help. On 3/22/09 10:55 AM, "I. Savant" wrote: > On Mar 22, 2009, at 12:27 PM, Pierce Freeman wrote: > >> I am wondering if there is some way t

Re: Programmatically Change Icon

2009-03-22 Thread Pierce Freeman
>Heh - "... some way to change another applications icon ..." > Changing has all those issues attached. Viewing on the other hand is > easy. My point exactly. ;) >As Uli mentioned, NSWorkspace should be all you need simply to get > a copy of the icon. The bundle stuff is only necessary if

Re: Programmatically Change Icon

2009-03-22 Thread Pierce Freeman
>Slightly-challenging-answer: Try it and see. > >Non-smarmy-answer: Yes. So would the other, more complicated > approach. Lol, just wanted to make sure. >I would assume this as well ... there'd be a number of software > companies in hot water otherwise. Especially OS vendors like App

Re: Programmatically Change Icon

2009-03-22 Thread Pierce Freeman
>Slightly-challenging-answer: Try it and see. > >Non-smarmy-answer: Yes. So would the other, more complicated > approach. Just tried it, and it works great... Thanks! Just two questions so far: 1. How can I get different sizes of the icon, or are they just linked to the size of the outl

Re: Programmatically Change Icon

2009-03-22 Thread Pierce Freeman
>I suggest some reading: > > http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classe > s/nsimage_Class/Reference/Reference.html > > http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Im > ages/Images.html > > http://developer.apple.com/document

Re: Programmatically Change Icon

2009-03-22 Thread Pierce Freeman
>Come to think of it, it's strange that you get an icon for a non- > existent file, but if it *does* exist, I'd always expect some sort of > icon. I've never run into this situation personally. Which specific > method are you using? There are: > > ­ iconForFile: > ­ iconForFileType: > ­ iconFo

  1   2   >