Re: Pasting into another app

2009-01-09 Thread Scott Ribe
on the V key down event, then V key up--no command key down & up events. I targeted a couple of different apps, same thing with both. Dave said: > ...you don't have to post four. Not just don't have to--that doesn't even work. (The example in the docs puts in a lower-cas

Re: Mac Pro memory sizes

2009-01-12 Thread Scott Ribe
; translates very roughly to "need to manipulate more than about 2GB of data". -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: Release vs. autorelease

2009-01-12 Thread Scott Ribe
g up a pile of auto-released objects that won't be released until the pool is drained... This is a rare need, BTW. Usually one pool is just fine--that's really the point. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice _

Re: Seamlessly converting any type of document to PDF?

2009-01-14 Thread Scott Ribe
If you can direct the application via AppleScript to print the document to the default printer, then you can set up a printer that prints to a PDF file, and switch the printer programmatically. (Combination of lpadmin & defaults write commands.) -- Scott Ribe scott_r...@killerbytes.com

Re: Report writer for Cocoa?

2009-01-16 Thread Scott Ribe
, has WebKit ever added support for printing table headers at the top of each page when a table spans multiple pages? That lack was the one thing that prevented me from using WebKit for reporting--but it has been a long time since I tried it. -- Scott Ribe scott_r...@killerbytes.com http://www.ki

Re: Report writer for Cocoa?

2009-01-16 Thread Scott Ribe
> That's like asking for a report writer for C or C++ and their libraries. Exactly. And it's not at all an unreasonable request. And they do exist--on other platforms. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 7

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Scott Ribe
n testing, I've found that to be the biggest difference, because Objective-C method dispatch is in fact pretty efficient method dispatch. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mai

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Scott Ribe
e prone than many to optimize by throwing in some strategic C++. (Also agree that Objective-C is nice for UI work.) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Scott Ribe
27;ve seen demanded by people who don't really understand Objective-C, there's levels of efficiency that in C++ can be combined with high-level abstractions, but in Objective-C would require raw C. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: ObjC in time-critical parts of the code

2009-01-18 Thread Scott Ribe
ve no idea about the optimization possibilities of C++ class templates. In essence, the stricter/static typing of C++ allows many more optimizations to be applied to object-oriented code (not just plain C), and the more dynamic typing of Objective-C restricts the possibilities (while enabling techn

Re: Yo

2009-01-18 Thread Scott Ribe
week or so ago (and received abusive email for it). Weird that he would re-sub under the same name, but whatever... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: real noob question

2009-01-18 Thread Scott Ribe
> You wanted to work with NSDecimalNumber, so you should definitely > have searched the documentation for that term. Better yet, right- (or control-) click it in your code and choose "Find Selected Text in API Reference". -- Scott Ribe scott_r...@killerbytes.com http://www

Re: Cocoa and the need for a dynamic language

2009-01-18 Thread Scott Ribe
> Therefore, I take issue with Scott Ribe because I don't think Cocoa > can be implemented as we know it in C++. Eh? That was my point: ...just as you can't "rewrite Cocoa in C++"... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes

Re: SIGPIPE with sockets

2009-01-19 Thread Scott Ribe
muck around with signal handlers. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Anybody using Fix and Continue and Objective-C++?

2009-01-19 Thread Scott Ribe
> Is anyone able to use fix and continue with Objective-C++ source > files? I can't get it to work. It only works with Objective-C. Known limitation... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722

Re: ObjC in time-critical parts of the code

2009-01-19 Thread Scott Ribe
rray, NSSet & NSDictionary--but the library of data structures & algorithms in C++ is far more extensive. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: ObjC in time-critical parts of the code

2009-01-19 Thread Scott Ribe
rse to C++/STL. Those containers are also highly optimized, and are able to take advantage of static type info to enable optimization that you simply cannot get with Objective-C objects & containers. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.

Re: Trying to display a simple sheet

2009-01-19 Thread Scott Ribe
the window you want to display as a sheet, and the window on which you want to display is not shown in your code--but your code sample doesn't provide enough context to really see what's going on. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/

Re: "Cocoa Fundamentals Guide" Clarification

2009-01-19 Thread Scott Ribe
they don't need to be there--and that is not what I would call "beginner friendly" advice at all. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists

Need click on button in table to NOT activate app

2009-01-20 Thread Scott Ribe
it is activated, so the only way to copy & paste from my program is to do so without my program ever being activated.) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev

Re: Custom Cocoa Component/Control

2009-01-20 Thread Scott Ribe
You probably need a custom NSCell subclass, and you'll set that to be the cell class used by the browser. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Need click on button in table to NOT activate app

2009-01-20 Thread Scott Ribe
nel non-activating, but apparently I hadn't. That makes it work exactly the way I need it to. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread Scott Ribe
ed to alloc & init an array and assign to it--you can't call arrayByAddingObjectsFromArray on something that's not an array and expect it to work - what is listOfMonthNames2? <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/TasksM emoryManagementRules.html>

Re: Encryption: Simplest method to encrypt a SQLite DB file...? {iPhone}

2009-01-23 Thread Scott Ribe
for debug purposes. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Start traces with CrashReporter

2009-01-23 Thread Scott Ribe
> Yes, that is my thought too. Now I just have to wait for a crash ;-) And that's why my app contains this gem: - (IBAction) crashNow: (id) sender { *(char*)0=0; } -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-05

Re: How to catch and log EXC_BAD_ACCESS?

2009-01-26 Thread Scott Ribe
and I have ***NEVER*** seen that termination fail, not under any circumstances. In fact, if the system can't terminate the app after EXC_BAD_ACCESS, there would be no reason to expect the user to be able to force quit it either... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbyte

Re: Accessing private members of another object of the same class

2009-01-26 Thread Scott Ribe
> Why not in C++? Same as Objective-C, another instance of the same class can access them (as can static methods of the class)... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing l

Re: Not Resolving Aliases

2009-01-26 Thread Scott Ribe
What are you actually trying to do? -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Not Resolving Aliases

2009-01-26 Thread Scott Ribe
ly considered a feature, so unless it's explicitly documented that your technique doesn't do this, you may be vulnerable to an OS update adding a feature and breaking your stuff... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice __

Re: Not Resolving Aliases

2009-01-27 Thread Scott Ribe
> I would expect the > documentation to call out the fact that a routine *does* automatically > resolve leaf symlinks. That would be my preference, but it hasn't always been so... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303)

Re: getting WindowRef for focus window in other applications

2009-01-28 Thread Scott Ribe
t is you're trying to accomplish. Depending on what you want to do, it might be impossible, it might be possible through assistive technologies, it might be possible through scripting, it might be possible through CoreGraphics & window server. It might also be possible on 10.5, but not 10.4. And

Re: XCode Debugger - a couple of questions from newbie

2009-01-28 Thread Scott Ribe
Try turning off lazy loading of symbols, in Xcode's preferences. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: GUI threading question

2009-02-02 Thread Scott Ribe
pposed to provide an easy way to do that, but it's not necessary. You can start a thread and arrange to receive its results using NSThread, or MPTasks, or pthreads... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303)

Re: Read lines from very large text file

2009-02-03 Thread Scott Ribe
> Would a correct implementation not depend on being able to iterate > over characters, and not simply using a fixed step size? Not in order to find line endings. Now, actually doing anything with the line of text is a different issue, dependent on the encoding. -- Scott Ribe s

Re: Read lines from very large text file

2009-02-03 Thread Scott Ribe
> Might it help to look at the source for 'more' and/or 'less' (the Unix > utilities)? No idea whether they handle non-native line breaks competently. (Many many tools do not.) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes

Re: Simple memory problem

2009-02-05 Thread Scott Ribe
> So, how do I keep a copy hanging around AND kill the mysterious new > copy then (which shares the same name as the old one presumably)? 2 pointer variables... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567

Re: Simple memory problem

2009-02-06 Thread Scott Ribe
> Its fairly clear in this situation that the original 'inputString' is > not wanted and needs to die... No, it is not. There could be any number of other variables in your program holding pointers to the same object. You know there are not, but the compiler does not know that.

Re: CGFloat and 64 Bit

2009-02-09 Thread Scott Ribe
ation error. Can't remember for sure if that was the 90s or 80s, but they did exist at some point in the past. [*] first draft of this message had a typo; I referred to K&R 2988 ;-) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/

Re: Name to PSN

2009-02-28 Thread Scott Ribe
> Since the dock is an application (at least based on what you/I am saying) > why wouldn't it show up in NSWorkspace? It's a special application which the system knows about and treats specially in various ways. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com

Re: Name to PSN

2009-02-28 Thread Scott Ribe
e: @"tell application \"System Events\"\r..."] autorelease] executeAndReturnError: &err]; OK, yeah, I wouldn't (don't) actually try to jam it all on one line like that, but it's just to give you the idea... -- Scott Ribe scott_r...@kill

Re: Obtaining image from a scanner using ImageKit?

2008-10-01 Thread Scott Ribe
ICA is quite easy to use, but does not support multi-page scans. So, depends on your needs... -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: creating a printer

2008-10-12 Thread Scott Ribe
> But how do I add a printer to the system? Any pointers to the right > docs? I think you'll have to use lpadmin, via NSTask, and it's not particularly easy to figure out the right options without knowing a good bit about CUPS, which I don't... -- Scott Ribe [

Re: waiting for an NSThread

2008-10-13 Thread Scott Ribe
Isn't there a race condition there? Can't the thread exit before the observer is added? -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: how to complete c/s app

2008-10-15 Thread Scott Ribe
able to describe what you want to do before you can realistically expect effective help here. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: how to complete c/s app

2008-10-16 Thread Scott Ribe
> That looks like a sound set of requirements... Or rather, will be, once "vigorous", "flexible", "scalable", and "reusable" are defined with specificity ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___

Faceless background app that uses NSAppleScript

2008-10-16 Thread Scott Ribe
t's too much of a pain in the neck, I'll just live with what I already know how to do easily: a "GUI" that consists of a status window and a "Quit" menu item ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: how to complete c/s app

2008-10-16 Thread Scott Ribe
What do you wish to do that SAMBA does not? -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Faceless background app that uses NSAppleScript

2008-10-16 Thread Scott Ribe
I've done UNIXy server daemons (with some CF stuff). I was imagining having to combine the two in some way requiring obscure initialization sequences. Thanks. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ C

Re: [OT] How do people use and contribute to this list?

2008-10-19 Thread Scott Ribe
en mark all as read. About once a year, I mass delete messages older than a year or so. The "view unread only" option is the reason I haven't switched to Mail and still use Entourage. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice __

Re: No warning on float to int assignment?

2008-10-24 Thread Scott Ribe
> It's perfectly legal to cast a float to an integer... Legal yes, but not a bad idea to have a warning if it's done without an explicit cast. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Coco

Re: Just starting off in obj C

2008-10-26 Thread Scott Ribe
> Interesting, but that's no longer ansi-C. Plus it still won't support you > creating your own kinds of format strings. Yeah, if you want standard + type safe + custom types you have to use C++ ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303

Re: Porting from Windows to Mac

2008-10-30 Thread Scott Ribe
he details of the app. ***DO NOT*** expect that it's merely a matter of finding the corresponding Mac API call for each Windows API call--the differences run deeper than that. In order to be successful, you ***WILL*** have to learn to be a Mac developer, period, no shortcuts. -- Scott Ribe

Re: Type comparison warning

2008-10-30 Thread Scott Ribe
tensions with the basic C rules, which still hold true. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Type comparison warning

2008-10-30 Thread Scott Ribe
> Not true, NSInteger and NSUInteger are typedefs for plain integer > types, *not* Objective-C objects. Yes, yes, yes. Thanks for pointing that out. I'm not doing 10.5-only development yet, so I read "NSNumber" because I'm not used to seeing NSInteger anywhere. -- S

Re: Type comparison warning

2008-10-30 Thread Scott Ribe
> All my projects that target 10.4 already use NSInteger (and are 64 > bits safe). I got an error when I first tried. Perhaps that was with a project that still supports 10.3.9... -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567

Re: Where does stdout go in an ordinary Cocoa application?

2008-11-14 Thread Scott Ribe
Open Console.app. You should see your log messages, mixed in with others... Or close stdout and reopen to wherever you want. (See fclose & fdup...) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Scott Ribe
be reused to store the different pointer to bonjourServices. Step it line by line, and watch the values of those variables. Or actually do something with mounts later in the method. Or get rid of mounts if you're not going to use it. -- Scott Ribe [EMAIL PROTECTED] http://www

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Scott Ribe
> This is a debug built, and I'm checking in the code where mounts is > being assigned objects Which, if I recall correctly, is before bonjourServices is allocated. What do you think the problem is? -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Scott Ribe
l shadow that, and so there's your problem. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Need some advice on multithreading

2008-11-24 Thread Scott Ribe
You can also drop down below Cocoa. See MPQueue, and google MP2POSIX. Further discussion would probably be more productive on the mt-smp or perfoptimization-dev lists. I had typed up much more info, but apparently there's a magic key in Entourage that clears the text of a draft, closes the window,

Re: Killing a Thread

2008-11-25 Thread Scott Ribe
and have it return when it sees the signal (and this includes the POSIX function to "kill" a thread). But there is no function to simply terminate one thread from another, because there is NO WAY to create a function to do that safely. -- Scott Ribe [EMAIL PROTECTED] http://www.k

Re: Need some advice on multithreading

2008-11-25 Thread Scott Ribe
(Of course, if your process gets switched out, you will sleep longer. Also note that I was testing on an 8-core machine, so my process didn't need to spend terribly much time switched out...) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303

Re: Killing a Thread

2008-11-25 Thread Scott Ribe
> PTHREAD_CANCEL_ASYNCHRONOUS I didn't even know about that option for pthread_cancel... -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Killing a Thread

2008-11-26 Thread Scott Ribe
es, and as in 1, the function you're calling never completes and returns, thus holding a lock on some shared resource. Impossible to say which without more information, but the solution is absolutely NOT a "kill_thread" function. --

Re: Killing a Thread

2008-11-26 Thread Scott Ribe
ny of your code. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ 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-

Re: to get handle to "File/1.jpg"

2008-11-26 Thread Scott Ribe
gets mapped back to "/". Probably doesn't matter for the original question, but sometimes useful to know what is actually happening when trying to figure out how to refer to a file using a particular access method... Now if only the Cocoa team would figure this all out... -- Scott

Re: to get handle to "File/1.jpg"

2008-11-26 Thread Scott Ribe
> More to the point, from the perspective of both the Cocoa APIs and the > low-level POSIX APIs that every other userland API... This is specifically not true of some Carbon/Core APIs. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567

Re: Memory management puzzle

2008-11-26 Thread Scott Ribe
Are you sure your dealloc is not being called? Are you sure your dealloc has the correct method signature? Because the "I got an EXC_BAD_ACCESS as well" thing sure sounds like your view is being deallocated. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-

Re: Killing a Thread

2008-11-27 Thread Scott Ribe
d determine what the function is doing and why it does not end. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: Using a string as filepath

2008-11-28 Thread Scott Ribe
f illustration, can show up in the Finder in really ugly ways when copying from HFS to FAT. Users get horrible error messages telling them a filename is illegal, with no information on what exactly is required to fix the name. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbyte

Re: what does FAILED TO GET ASN FROM CORESERVICES mean?

2008-11-28 Thread Scott Ribe
here is not yet a user logged in, so behavior is unspecified. Sounds like you need to launch at login, not at boot. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: reading a PDF

2008-11-29 Thread Scott Ribe
aragraph of text where is one draw command per character. For an image that fills the page, you might have one content stream and one draw command, or you might have multiple image slices with one content stream and one draw command for each slice. IOW, what you want is not so simple. -- Scott

Re: Beginner memory management question

2008-12-04 Thread Scott Ribe
tion/Cocoa/Conceptual/MemoryMgmt/Tasks/ MemoryManagementRules.html> -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: How To Deal With Rounding Errors

2008-12-04 Thread Scott Ribe
If the user clicks just off the left of the view, does that give you a negative value? Or do you limit it to 0, then divide by 0? What happens if you use a range of 1->2 instead of 0->1? -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567

Re: Questions about [NSApplication run]

2008-12-06 Thread Scott Ribe
efore calling performSelectorOnMainThread which will pull events out of the queue until there are no more. And... I don't rememeber why ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list

Re: Printing File to PDF from Native Application

2008-12-09 Thread Scott Ribe
les as you prefer. I would have done that, but I hate bash scripting, so I wrote my own in Ruby. In or to print a file using another program, you want to look into AppleScript and possibly Launch Services. -- Scott Ribe [EMAIL PROTECTED] http://www.k

Re: Printing File to PDF from Native Application

2008-12-09 Thread Scott Ribe
which converts MS Word documents to PDF with absolute fidelity. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: Programmatically constructing list of variable arguments?

2008-12-12 Thread Scott Ribe
ing the API ought to provide... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Why does my heartbeat thread crash?

2009-03-07 Thread Scott Ribe
n/Cocoa/Conceptual/MemoryMgmt/Articl es/mmObjectOwnership.html#//apple_ref/doc/uid/2043-BEHDEDDB> -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: User In-Activity hook? And a request

2009-03-10 Thread Scott Ribe
rSInt64Type, &nano ); CFRelease( obj ); val = nano / 10.0; } return val; } -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: EXC_BAD_ACCESS on NSImageView::setImage

2009-03-11 Thread Scott Ribe
Does your setImage method retain the image? -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: NSTimer: Debug vs. Release build

2009-03-16 Thread Scott Ribe
> btw, this method doesn't have any parameter, it's definition is: Whether you need it or not, you must take it, because that's the method signature that NSTimer expects to call back. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (3

Re: BOOL takeStupidRoad = NO (search app design question)

2009-03-23 Thread Scott Ribe
& searching it is not unreasonable at all. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Crash in Thread 2

2009-03-24 Thread Scott Ribe
gging techniques apply: NSZombieEnabled, MallocDebug, Instruments, etc. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: Automatic code generation for C++/Objective C bridge

2009-04-03 Thread Scott Ribe
I don't see the point. I work extensively with Objective-C++ and I don't think I've ever seen a single situation where wrapping C++ objects in Objective-C wrappers would have been a good approach. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303)

Re: memory deallocation

2009-04-04 Thread Scott Ribe
design. You shouldn't be trying to deallocate strings in code that has no idea how the strings were allocated in the first place. You need to have a clear idea about "ownership" of all data. -- Scott Ribe scott_r...@killerbytes.com http://www.

Re: finder file size

2009-04-09 Thread Scott Ribe
dregs of ancient stuff that is lower-level but won't move on because it's pointless--consider parameter block routines in the File Manager for instance. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice

Re: Creating a Remote database connection.

2009-04-10 Thread Scott Ribe
> You'll have to find a driver on your > own. Good luck. I've been quite pleased in the past with OpenLink drivers. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing

Re: @selector not working with (id)anObject

2009-04-12 Thread Scott Ribe
> Basically I just need to use a function pointer. How does Cocoa do this? Put a function pointer member in your class and set it before you call detachNewThreadSelector on it... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 vo

Re: Reading in dictionary from txt file: options for speed

2009-04-16 Thread Scott Ribe
general an NSData is not a string; it won't end with a 0 byte unless you put one there, and it can contain 0s mid-stream as well. That's why it's got an explicit length. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.

Re: Mac Error Reporting

2009-04-17 Thread Scott Ribe
file per crash, with different naming conventions. And a variant of that second one: - If you're really ambitious, launch a background helper process to monitor for crash reports as soon as they happen--probably way overkill for most situations. -- Scott Ribe scott_r...@killerbytes.com http:/

Re: starting point for screen-sharing

2009-04-17 Thread Scott Ribe
<http://developer.apple.com/leopard/overview/imframework.html> -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reque

Re: Opening file with C++ iostream from application bundle

2009-04-22 Thread Scott Ribe
You need to use a full path, not count on the default directory--and others have provided code to get the path. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev

Re: Time since Login?

2009-04-22 Thread Scott Ribe
> There's > also a function, whose name I forget, that returns microseconds since > startup. "Microseconds" ;-) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev

Re: Accuracy of timers?

2009-04-23 Thread Scott Ribe
y USB hardware that locks up if I send it commands too quickly), and I timed it mostly out of curiosity. I found it to be shockingly accurate--sorry I don't remember the numbers. Of course, I'm on an 8-core machine, and results may well be very different on dual-core with a busy us

Re: Scheduling application

2009-04-27 Thread Scott Ribe
Put the plist in /Library/LaunchDaemons, and make sure owner is root, and only owner has write access. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

WTF? Is a file corrupted?

2009-05-05 Thread Scott Ribe
#x27;m curious, anybody got a clue to offer as to what is suddenly causing menu drawing/tracking to crash? I'll try reinstalling, but if that actually "fixes" it, then I'll be worried that her Mac is going down the tubes... -- Scott Ribe scott_r...@killerbytes.com http://w

Re: WTF? Is a file corrupted?

2009-05-05 Thread Scott Ribe
ything interesting about the crash > report (unexpected libraries linked in)? Yes. Yes. No. No. In fact, 2 machines with the same software, 3 feet apart, 2 users sharing a counter, and doing the same job, using the same subset of app features. -- Scott Ribe scott_r...@killerbytes.com http://www.

Re: Associating Objective-C objects with Java objects using JNI

2009-05-07 Thread Scott Ribe
gate objects. There's some work involved, that's for sure. But it's really not all that complicated. One suggestion specific to your stated plan: forget any special annotations for methods, just generate methods in the Objective-C proxy for all methods in the Java class. --

Re: Associating Objective-C objects with Java objects using JNI

2009-05-08 Thread Scott Ribe
gate objects. There's some work involved, that's for sure. But it's really not all that complicated. One suggestion specific to your stated plan: forget any special annotations for methods, just generate methods in the Objective-C proxy for all methods in the Java class. --

<    2   3   4   5   6   7   8   >