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
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
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
___
) 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
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
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
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
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
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
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
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
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
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
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
___
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
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
_
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
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
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
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
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
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
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
//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
__
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
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
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
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
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
29 matches
Mail list logo