NSToolbarItem not displaying

2011-02-17 Thread Kevin Walzer
2." item1 simply disappears; item2 is displayed where item1 should be, and item2 is correctly displayed in its own intended spot. This is where item1 is disappearing, since the log statement show that it is correctly retrieved from the array. Any suggestions as to what I'm doing wrong

Re: printPanelDidEnd:returnCode:contextInfo: variable isn't updated

2010-08-10 Thread Kevin Walzer
t's one I can live with because most users likely won't notice it. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

printPanelDidEnd:returnCode:contextInfo: variable isn't updated

2010-08-10 Thread Kevin Walzer
27;t believe it should be an error of variable scope, as the variable printResult is defined at the global level of the code, outside any functions or class definitions. Any thoughts about what I'm doing wrong here? Thanks, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___

Re: Carbon pasteboard/service events not firing in Cocoa app

2010-04-20 Thread Kevin Walzer
) then you will need to implement the Cocoa Services APIs. -Peter Hi Peter, Thanks for the clarification. Looks like it's back to the drawing board for me. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mail

Carbon pasteboard/service events not firing in Cocoa app

2010-04-20 Thread Kevin Walzer
pes event (necessary to determine if my app provides a service) and kEventServicePerform (to perform the service) do fire. Any advice is appreciated. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa

Re: Debugging Services menu in Leopard

2010-01-07 Thread Kevin Walzer
Oops, to answer my other question: http://www.cocoadev.com/index.pl?DiscoveringSystemServices -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Debugging Services menu in Leopard

2010-01-07 Thread Kevin Walzer
On 1/7/10 10:51 AM, Kevin Walzer wrote: Does anyone have any idea why Service Scrubber would see my service but it doesn't show up in the services menu? --Kevin OK, since my previous question may have been too specific, here's a more general one: Does anyone know of a Cocoa

Debugging Services menu in Leopard

2010-01-07 Thread Kevin Walzer
viceTest) and NS method (provideService). Does anyone have any idea why Service Scrubber would see my service but it doesn't show up in the services menu? --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing

Carbon Services under Cocoa app?

2010-01-03 Thread Kevin Walzer
n't work? I have everything set up correctly in the info.plist file, so that isn't an issue. And Cocoa apps still have to call into the Carbon event loop for things like global hotkeys, as far as I can tell. Advice is appreciated. -- Kevin Wa

Re: Subview and window size

2009-12-19 Thread Kevin Walzer
would mean, basically, that I want it its frame to be the same as the frame for the window's contentView. Right now it's not the same size. Right now it takes up 1/4 of the window. How do I set the bounds/geometry to be the same as the toplevel frame in the window? -- Kevin Walze

Subview and window size

2009-12-18 Thread Kevin Walzer
Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ 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

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
o support strings and file paths at a minimum. NSURL, unfortunately, complicates this design more than I would like. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
On 11/23/09 7:14 PM, Jens Alfke wrote: On Nov 23, 2009, at 3:51 PM, Kevin Walzer wrote: Given that file paths are a requirement for my project and URL's are a "nice-to-have," I'll have to move forward without NSURL. Too bad. Why? To get the filesystem path just

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
type solved the problem. Given that file paths are a requirement for my project and URL's are a "nice-to-have," I'll have to move forward without NSURL. Too bad. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___

Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
rd setString:pasteboardvalue forType:NSStringPboardType]; } return YES; } -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

NSString componentsJoinedByString--strange output

2009-11-22 Thread Kevin Walzer
o.txt /Users/kevin/Desktop/bar.png /Users/kevin/Desktop/baz.txt Any idea what the problem is? I've looked at the methods and various websites and can't find what I'm doing wrong. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com _

Trying to write icon data to file

2009-03-13 Thread Kevin Walzer
ies:nil] writeToFile:@"/Users/kevin/Desktop/bar.gif" atomically:NO]; [pool release]; return 0; } Thanks -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

NSMakeSize and correct type

2009-03-12 Thread Kevin Walzer
file [[resizeicon representationUsingType:NSGIFFileType properties:nil] writeToFile:imagePath atomically:NO]; //release memory [icon release]; [resizeicon release]; [pool release]; return 0; } Any suggestions? -- Kevin Walzer Code by Kevin

Re: gui development without using xcode or interface builder

2009-02-27 Thread Kevin Walzer
it easy to build a GUI in code.) If you want to build a Mac app in code, you do have options, especially if you broaden your perspective to include cross-platform toolkits. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev

Alternative to NSWorkspace iconForFileType for icons?

2009-02-24 Thread Kevin Walzer
something in Cocoa here? Can anyone suggest an alternative API/class/method to me? -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-21 Thread Kevin Walzer
any docs about this? -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ 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

Re: Multiple instances of NSApp/NSApplicationLoad()

2009-02-17 Thread Kevin Walzer
Kevin Walzer wrote: Answers my own question: put the call in switchIcon, before calling anything else in that method. cf: Errr, that method should be as follows: -(int) switchIcon: (NSString *) iconPath { NSApplicationLoad(); //set up autorelease pool

Re: Multiple instances of NSApp/NSApplicationLoad()

2009-02-17 Thread Kevin Walzer
Kevin Walzer wrote: I have multiple calls to NSApp, which is apparently the problem--I am not correctly setting the NSApp global. I've been advised to call NSApplicationLoad(), since Tcl/Tk is currently based on Carbon, but I'm not sure where to do this. Answers my own que

Multiple instances of NSApp/NSApplicationLoad()

2009-02-17 Thread Kevin Walzer
//set up autorelease pool NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; //restore the app icon [NSApp setApplicationIconImage:nil]; [pool release]; return 0; } @end -- Kevin Walzer Code by Kevin http://www.codebykevin.com __

Re: Syntax errors, undeclared variables

2009-02-07 Thread Kevin Walzer
Peter Duniho wrote: On Feb 6, 2009, at 6:51 PM, Kevin Walzer wrote: [...] I'm not sure what is causing these errors. Line 11 is set up like this: -(int)switchIcon (ClientData cd, Tcl_ip *ip, int objc, Tcl_Obj *objv[]); The error is because your method prototype syntax is completely

Syntax errors, undeclared variables

2009-02-06 Thread Kevin Walzer
loc] initWithContentsOfURL: iconURL]; if(newIcon == nil) { Tcl_AppendResult (ip, "couldn't create icon image from path", (char *) nil); return TCL_ERROR; } //set the new image [NSApp setApplicationIconImage: newIcon]; //release the memory [ne

Re: Creating and App menu from Scratch

2008-07-14 Thread Kevin Walzer
menu by parsing a MS .RC file, for example A "Carbon to Cocoa" tool would certainly be nice... -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Set string value

2008-07-09 Thread Kevin Walzer
Sherm Pendley wrote: On Wed, Jul 9, 2008 at 4:12 PM, Kevin Walzer <[EMAIL PROTECTED]> wrote: Hello, I'm trying to work through an exercise in the new Hillegass book and am encountering difficulties. The app fails to build. The relevant code snippet is below, with errors noted in t

Set string value

2008-07-09 Thread Kevin Walzer
gs for me: 1. How to structure the setStringValue method so that gcc doesn't barf because of "too many arguments"--I'm not clear what that means. 2. How to structure the initialization of the stringLength variable so that gcc doesn't emit warnings--I'm not cle