Re: Recording phone calls

2009-07-23 Thread Scott Ribe
ctions. -- 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 at cocoa-dev-

Re: How to use NSTimer correctly?

2009-07-25 Thread Scott Ribe
ange for dealloc to be called, by making sure nothing (the timer) still retains you. -- 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

Re: How to display the file's basic information in the columns of the table view?

2009-07-25 Thread Scott Ribe
> But when I drop the file into the table view, the app exited immediately. Find the crash report and look at it; if you don't figure it out from that, send another message here with the crash report. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-05

Re: I need a milder application badge (solution)

2009-07-25 Thread Scott Ribe
> If I set a particular background color for the view where I am drawing > the image... Sherm's suggestion does not involve drawing into a view at all... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722

Re: How to display the file's basic information in the columns of

2009-07-27 Thread Scott Ribe
ractical.html> Note that I'm assuming the simple case and most likely cause--if you're doing anything like using threads then you'll need to say so ;-) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: Document-Based Application

2009-07-27 Thread Scott Ribe
l ok, 44) files. -- 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 at c

Re: nil there not here More Info

2009-07-27 Thread Scott Ribe
> I just noticed that the object I allocate is not the one whose > drawRect is being called ... I am confused ... what other object is > there ! One defined in a nib file perhaps? -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0

Re: iTunes DB Change Notifications?

2009-07-28 Thread Scott Ribe
> Isn't this an extremely expensive operation? I strongly suspect that Apple's intent was to support infrequent operations, such as non-iTunes software synching to non-iPod devices. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 7

Re: incorrect checksum for freed object

2009-08-01 Thread Scott Ribe
en pass the addresses of those into routines that take IOxxx*** and fill in your IOxxx** and then you do (*iovar)->Function throughout the code. Still though, Shawn's basic point is right: Ken is confused about memory management *somewhere* in his code. -- Scott Ribe scott_r...@killerbyte

Re: incorrect checksum for freed object

2009-08-02 Thread Scott Ribe
> I don't think this problem is down to confusion over memory management > necessarily. Poor choice of words on my part... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing

Re: Problem with Float type variable

2009-08-16 Thread Scott Ribe
nt, it's an infinite series, and thus not representable in any fixed number of binary digits.) -- 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: initWithCoder but I do not have nib file

2009-08-17 Thread Scott Ribe
I think what you want to do is override +buttonWithType in your CustomButton class, but it's not entirely clear from your message. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing

Re: Force crash a cocoa app for Crash Reporter testing

2009-08-20 Thread Scott Ribe
> Anyone have any code I can use to do this? *(char*)0 = 0; -- 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

Re: Statements in Replaced Method execute out of sequence - How?

2009-08-21 Thread Scott Ribe
> No, that's not how Method Replacement works. Ah, sorry for the noise. I'm unable to move to Obj-C 2.0 yet, so haven't started learning it yet, so spoke when I shouldn't have ;-) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.co

sharing file descriptors to an NSTask

2010-08-31 Thread Scott Ribe
do return 0 from fcntl(desc, F_GETFD...). At least, when I try to write to one from the child process, I get EBADF. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (

Re: sharing file descriptors to an NSTask

2010-09-01 Thread Scott Ribe
k to a closer to pure Cocoa implementation. BTW, I tried a named pipe, works but it was surprisingly slow. Domain sockets are next up. (Maybe after I try a couple of isolated tests of named pipes...) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303

Re: sharing file descriptors to an NSTask

2010-09-01 Thread Scott Ribe
lower-end Macs.) So that wasn't the problem, so I don't really need to share descriptors between processes, nor use domain sockets, nor go off into the weeds experimenting with mach ports or shared memory. But interesting discussion anyway ;-) -- Scott Ribe scott_r...@elevated-dev

Re: Number of open ports exceeded

2010-09-14 Thread Scott Ribe
On Sep 14, 2010, at 10:30 AM, Ivan C Myrvold wrote: > How can I increase the possible number of ports to be opened in my Cocoa > application? The question you should be asking is how you can make sure ports are closed when you are done using them. -- Scott Ribe scott_r...@elevated-d

Re: NSTimer memory management

2010-09-22 Thread Scott Ribe
How about: just don't retain the timer? It is not the ordinary Cocoa memory management pattern, but it works perfectly well. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list

Re: To make an application start everytime when another program starts

2010-09-23 Thread Scott Ribe
ipts will take several times as long to execute. And so on :-O I never tried 2008, because I used a bit of VBA here and there. I am hopeful that 2011 will be an actual improvement. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Scott Ribe
On Oct 1, 2010, at 2:15 PM, Kevin Ross wrote: > libsqlite3.dylib mallocs 35 objects that are still considered "live" Sqlite manages its own cache. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 7

Re: Confused about floats

2010-10-05 Thread Scott Ribe
On Oct 5, 2010, at 8:51 AM, Shawn Bakhtiar wrote: > Also if x is a float, make sure you use the proper type cast, or values, ie > ( x = x + 120.00) or (x = y + (double)z , where x and y are double and z is > an int). That is *completely* unnecessary and pointless. -- Scott Rib

Re: Confused about floats

2010-10-05 Thread Scott Ribe
t in Objective-C this may no longer be an issue, as > the compiler does your work for you, but that was not an assumption I was > making. It's got nothing to do with Objective-C; C has always taken care of that case. What exactly do you think is wrong with x = x + 100 where x is

Re: Confused about floats

2010-10-05 Thread Scott Ribe
27;s no "should" about it. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.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 li

Re: Confused about floats

2010-10-05 Thread Scott Ribe
(And, if you care, you could instead just write 299.0, or 299f, or 299.0f.) You could also just use if( x >= 300 ). If you were using fractional pixels anywhere, you'd want x = 0 instead of x = x-300, so that rounding errors would not accumulate. -- Scott Ribe scott_r...@elevate

Re: CPP reference operator

2010-10-08 Thread Scott Ribe
of C++ types, so when you see something that you can't understand, step 1 is nearly always to add some logging so that you can see the real values. Although most of the time this is not really a problem, since most of the time instead of displaying garbage, it just refuses to display a

Re: NSApplication nil?

2010-10-27 Thread Scott Ribe
On Oct 27, 2010, at 3:51 PM, k...@highrolls.net wrote: > then when I continue I get this crash which looks to me like NSApplication is > invalid! Can that be? NSApp has a pointer to an invalid object and tries to send it a message. Classic symptom of an over-release. -- Scott Ribe s

Re: Understanding the Run loop idea and the updating of controls during long operations

2010-11-07 Thread Scott Ribe
hreads, figure out your bug with synchronization around AppleScripts (there is no reason the library would run slower just because you add a new thread). -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Coc

Re: Ping host and port

2010-11-07 Thread Scott Ribe
On Nov 7, 2010, at 3:02 PM, Tom Jones wrote: > if(!port) { > NSLog(@"Port is open..."); > } else { > NSLog(@"Port is not open..."); > } Isn't that backwards? -- Scott Ribe scott_r...@elevated-dev.com http://ww

Re: NSUInteger = unsigned int?

2010-11-14 Thread Scott Ribe
ead? NSUInteger is 32-bit for 32-bit architecture, 64-bit for 64-bit architecture. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Releasing static variable & concurrent data protection questions...

2010-11-15 Thread Scott Ribe
on being "lost", instead of crashing. You can avoid that problem easily with @synchronized, or you can take a peek at OSAtomic.h... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev

Re: Releasing static variable & concurrent data protection questions...

2010-11-15 Thread Scott Ribe
ul. Granted, there might be some situation where you want to replace a static pointer-to-object with a different pointer, so you'd need to release before assigning in order to avoid a leak... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice

Re: Get current caret position

2010-11-16 Thread Scott Ribe
window's pos). Extremely unlikely that MS Word uses anything at all like a modified Cocoa text field. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Variable declaration in "for" loop initialization expression?

2010-11-18 Thread Scott Ribe
On Nov 18, 2010, at 4:57 AM, Oleg Krupnov wrote: > What are the possible > scenarios when I may need to use another dialect? If you have a lot of very very old code that depends on C99 quirks and not enough time to fix it. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-d

Re: Variable declaration in "for" loop initialization expression?

2010-11-18 Thread Scott Ribe
e it's set by default in > XCode and therefore probably is the newest. What is the newest > preferable dialect in this case? > > Oleg. > > On Thu, Nov 18, 2010 at 5:16 PM, Scott Ribe > wrote: >> On Nov 18, 2010, at 4:57 AM, Oleg Krupnov wrote: >> >

Re: NSTask with unzip

2010-11-27 Thread Scott Ribe
the same interface as files. But using NSFileHandle directly, you can use actual files, which in essence use the disk as the "buffer"... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev

Re: NSTask with unzip

2010-11-28 Thread Scott Ribe
x27;s not too hard to compress buffer to buffer. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Application crashing due to unicode characters in string

2010-12-01 Thread Scott Ribe
On Dec 1, 2010, at 7:26 AM, Devarshi Kulshreshtha wrote: > > The part of code which crashes is this- The code you posted won't even compile. Try posting the real code, and the stack trace. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722

Re: NSFormatter troubles (was: NSScanner troubles)

2010-12-11 Thread Scott Ribe
o just flexibly parse a date in any common format for the current locale. I learned this last week, while expunging a last little bit of deprecated code--the old International Utilities, which were in my opinion far superior for parsing dates & times. -- Scott Ribe scott_r...@elevated-dev

Re: convert CFRange to NSRange?

2010-12-14 Thread Scott Ribe
f the members is the same on 32-bit and 64-bit. But the "not found" values are different, so, you can't use any vile casting to reinterpret. But a macro to convert is pretty simple: #define NSMakeRangeFromCF(cfr) NSMakeRange( cfr.location == kCFNotFound ? NSNotFound : cfr.location,

Re: access multiple NSTextFields as an array?

2010-12-20 Thread Scott Ribe
plain C array as an attribute of your class, and set up its entries in awakeFromNib: patterRateLabels[0] = numberLabel1; patterRateLabels[1] = numberLabel2; ... Or if it works for your spacing and so on, you could use an NSMatrix to set up the text labels... -- Scott Ribe scott_r...@elevated-dev.co

Re: NSFileManager Wildcard Characters

2010-12-28 Thread Scott Ribe
'll have to enumerate the directory and find files that you want to remove, then remove each one explicitly. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Application that uninstalls itself

2011-01-03 Thread Scott Ribe
missions you don't expect, the move will fail, and all files will still be there, and you can put back everything you moved, then provide an error message. If you do manage to move all files to the temp dir, then you have write privs for them all, and should be able to delete them. -- Sco

Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-03 Thread Scott Ribe
he .m extension? (Or .mm if you are using C++ code from within it?) Third guess, are any C++ include files in your pch wrapped in #ifdef __cplusplus? If neither of the above is the problem, you may need to post a sampling of some of the errors. -- Scott Ribe scott_r...@elevated-dev.com http

Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-04 Thread Scott Ribe
your description of what you're doing, so I don't know. You say the class is empty, do you include any headers? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-de

Re: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Scott Ribe
as mistaken somewhere along the line. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.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: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Scott Ribe
swer. Might be good, at least you'd figure out whether or not you've correctly understood what we've been trying to say. After all, it's been kind of abstract... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevat

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-06 Thread Scott Ribe
d on some of your prior posts re pref panes, seems like it may not. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-10 Thread Scott Ribe
it, so I don't know what other issues there might be besides what I mentioned. As others pointed out, if there's any way you could the checking from your app early in its launch, that would avoid all such problems. -- Scott Ribe scott_r...@elevated-dev.com

Re: Problem with garbage collection in server application

2011-01-22 Thread Scott Ribe
yield... Still not exactly something that feels like a real solution, but it would be a clue... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: (id) issue, passing different types during initWith:(id)type

2011-01-29 Thread Scott Ribe
ain plenty of initWithString: (NSString*) declarations. You might want to use a name that is more specific. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Scott Ribe
then > either the main thread and the other thread can't progress. Ouch. If you think that's a problem, then trust me, you would really make a mess with multiple UI threads. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevat

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Scott Ribe
not betrays a lack of understanding of threading. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Scott Ribe
out that someone who thinks he can solve a thread deadlock problem by throwing more threads at it is really headed in the wrong direction. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Co

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Scott Ribe
ith the domain and unprepared to deal with a problem by pursuing a more complex solution. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Scott Ribe
On Mar 14, 2012, at 11:23 AM, JongAm Park wrote: > it didn't sound harsh in a jungle with full of male creatures. LOL! And you said your English was not so good. That was great! -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-05

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Scott Ribe
iest because of the coupling, is to use performSelectorOnMainThreadWithObjectWaitForCompletion: NO (yeah, I misspelled it, not looking at the reference right now), where the update can just be an object that is passed from bg to fg, and *not* shared otherwise. -- Scott Ribe scott_r...@elevated-dev.com http://ww

Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?

2012-03-14 Thread Scott Ribe
gs all over the place, regardless of whether or not an app is actually accessing any particular data from multiple threads, because now the framework has to assume that might happen. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567

Re: const correctness

2012-03-18 Thread Scott Ribe
const by many years. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.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 mode

Re: const correctness

2012-03-18 Thread Scott Ribe
cascading changes required. Objective-C now picks up C's support of const of course, but Cocoa doesn't use it, so it's not really useful. (And const goes nowhere near as deep as it does in C++, and so isn't useful for the same types of optimization tricks.) -- Scott Ribe

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
Allowing the user to move the original without disrupting references to it is the point, not space savings. On Apr 15, 2012, at 8:13 AM, Alex Zavatone wrote: > What's the point of aliases if they are this fat? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
don't know why or even if, but maybe the Finder is stuffing a 512x512 preview in there? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
erence, which is not in any way a substitute for a copy. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
> able to resolve the location of the icon and use the original, or use a > default file type icon representation if that lookup fails. > -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Co

Re: Dictionary not returning objects

2012-04-15 Thread Scott Ribe
WithObjectsAndKeys: > kUnitsKey, [NSNumber numberWithDouble:units], > kValueKey, [NSNumber numberWithDouble:value], > kIsMetricKey, [NSNumber numberWithBool:isMetric], > nil]; You've switch the order of objects & keys in the arguments. -- Scott Ribe scott_r...@eleva

Re: Is there a glue file between Carbon and Cocoa?

2012-04-17 Thread Scott Ribe
pure C++, and there's even pure C, as appropriate. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: Is there a glue file between Carbon and Cocoa?

2012-04-17 Thread Scott Ribe
nt, which you can find in Xcode documentation just by searching Objective-C++, then choosing "Using C++ With Objective-C". -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev

Re: loadNibNamed:owner

2012-04-19 Thread Scott Ribe
On Apr 19, 2012, at 2:41 PM, koko wrote: > Should not the outlets be connected when the nib loads? No. What are you actually trying to do? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-

Re: addsubview

2012-04-24 Thread Scott Ribe
s found here? Are you sure you're drawing it? Are you sure you're drawing it at the right location? BTW, it is a horribly, horribly bad idea to use the "NS" prefix on your own classes. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevat

Re: WWDC

2012-04-25 Thread Scott Ribe
way and difficult to access, than have the typical conference: run mostly by presenters with a week of training, and maybe the occasional engineering manager showing up for an hour to give a speech before being whisked back to work. -- Scott Ribe scott_r...@elevated-dev.com http://www.

Re: WWDC

2012-04-25 Thread Scott Ribe
On Apr 25, 2012, at 3:12 PM, Alex Kac wrote: > And a reminder - the iTunes U videos/PDFs given to us who don't go is > invaluable. Yes, that's an area where Apple really got its act together in recent years. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com

Re: DataSource modified while TableView is displaying data

2012-04-27 Thread Scott Ribe
ons of some sort to the main thread and alter the data source there. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: DataSource modified while TableView is displaying data

2012-04-27 Thread Scott Ribe
sy-polling loop... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.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 th

Re: Tracking down SIGABRTs

2012-04-30 Thread Scott Ribe
see abort() putting up the "The application has unexpectedly quit" dialog. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: Nil and nil Macro Conflict

2012-05-01 Thread Scott Ribe
want to change those class names and then have to re-do that every time you update the library... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Nil and nil Macro Conflict

2012-05-01 Thread Scott Ribe
hat it is a header-only template library does not change the fact that you can create wrapper classes to use from Objective-C++. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list

3d visualization

2012-05-14 Thread Scott Ribe
... Suggestions? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.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

Re: 3d visualization

2012-05-14 Thread Scott Ribe
On May 14, 2012, at 8:32 AM, Chris Goedde wrote: > This seems like a good place to start: Yes indeed. That page itself is not up to date, but is a gold mine of project names & search terms which has led me to some libraries that appear to be very good fits for my requirements. -- Sco

Re: 3d visualization

2012-05-14 Thread Scott Ribe
On May 14, 2012, at 9:03 AM, Sean McBride wrote: > Maybe VTK: Just found it a few minutes ago, based on searches inspired by the page Chris found--appears to be an excellent fit. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 vo

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Scott Ribe
On May 18, 2012, at 8:49 AM, Fritz Anderson wrote: > Yes, it can link to (including loading) non-ARC code. By which I assume you mean old-style retain/release code, not GC? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 vo

Re: How to restrict an app to run from harddisk

2012-05-22 Thread Scott Ribe
n that a disk image is always removable. Or go to extreme lengths to use lower-level calls to determine that the volume is a disk image, then find out where it's located, then check the containing disk type. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-de

Re: More PDFView mysteries...

2012-06-15 Thread Scott Ribe
Should also have noted: I believe this problem started with 10.7.4. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: More PDFView mysteries...

2012-06-15 Thread Scott Ribe
On Jun 15, 2012, at 7:19 AM, Scott Ribe wrote: > On Jun 14, 2012, at 3:15 PM, Matthew Weinstein wrote: > >> Ideas? Anyone else having pdfview lion problems. > > Yes, the problem you described, plus also fairly frequently crashes on > closing the window--looks like inval

Re: More PDFView mysteries...

2012-06-15 Thread Scott Ribe
sn't happen. I'm building on 10.6.8, and I do not use PDFThumbnailView. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: "best practice"

2012-06-20 Thread Scott Ribe
your app or not I don't know. The other approach of course: use a single table view, and programmatically switch its contents by switching out columns & bindings. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Scott Ribe
> updated correctly, sometimes not. Are there any known issues with > CFPreferences on Mountain Lion? My problems with prefs started with Lion, FYI... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Scott Ribe
gt; memory before flushing them to disk. Because they do not always get flushed to disk; sometimes they disappear. Because it is completely random whether or not changes are visible to other applications that share them--despite their having been sync'd. -- Scott Ribe scott_r...@elevated-dev.c

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Scott Ribe
s is not something you can rely on in > a sandboxed environment. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: PDFView not displaying properly/immediately

2012-06-26 Thread Scott Ribe
gt; rendered until I scroll about some more. Did something change in PDFKit, or > has anyone else seen this behaviour? I'm fairly certain that nothing has > changed recently in that part of the code base. It started with 10.7.4. -- Scott Ribe scott_r...@elevated-dev.com http://www

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Scott Ribe
n making > it possible to address arbitrary 32-bit slices of cache. No. A cache line always maps to a contiguous slice of RAM the same size as the line--to do otherwise would be an absolute nightmare of complexity. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (30

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Scott Ribe
only read 32-bits at a time (or less) from the cache for opcodes > that deal with 32-bits (or less) of data at a time. I don't think so; I think Kyle was asserting that for a 32-bit integer on a 64-bit machine, the CPU would read 64 bits from the cache. -- Scott Ribe scott_r...@elevated

Re: NSInteger vs int vs int32_t

2012-07-04 Thread Scott Ribe
ld add huge complexity--and, actually, would probably be impossible. How is the CPU to know before the memory is used, what is 32-bit values vs what is 64 (16, 8)? What happens when memory is accessed in one line of code as 2 32-bit values, and as 1 64-bit value in the next line. -- Scott Ribe s

Re: NSInteger vs int vs int32_t

2012-07-04 Thread Scott Ribe
On Jul 4, 2012, at 11:28 PM, Nathan Day wrote: > You are saying that the CPU read two 32bit int from the cache at the same > time, and then does some bit manipulation to get the high or low 32bit word > into a 64bit register. No, I'm not saying that at all. -- Scott Ribe scott

Re: NSInteger vs int vs int32_t

2012-07-05 Thread Scott Ribe
#x27;t > know how intel does it), then to get 32 bit aligned words it must do some bit > shift. Why are you assuming 64 bits must be read from the cache? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice __

Re: NSInteger vs int vs int32_t

2012-07-05 Thread Scott Ribe
x86-64 (more registers and so on). (Not that it matters anymore, but this is different than the PPC case, where there were not such instruction model differences between 32 & 64). -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice __

Re: Hang detection

2012-07-29 Thread Scott Ribe
Sample the process; see "man sample". On Jul 29, 2012, at 2:56 PM, John MacMullin wrote: > How do I snapshot, debug or otherwise detect and obtain a stack trace of the > code causing the hang? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303

Re: Hang detection

2012-07-29 Thread Scott Ribe
On Jul 29, 2012, at 4:49 PM, Scott Ribe wrote: > Sample the process; see "man sample". > > On Jul 29, 2012, at 2:56 PM, John MacMullin wrote: > >> How do I snapshot, debug or otherwise detect and obtain a stack trace of the >> code causing the hang? I was

Re: Sandboxing die.die.die

2012-08-22 Thread Scott Ribe
quire us to carry 7 figures' worth of insurance to cover that liability. So yes, in some cases, the user (and insurer) absolutely expects us to do the right thing. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303

Re: Macro challenge with variable arguments

2012-11-01 Thread Scott Ribe
C a macro like this cannot accept 0 varargs, this is a GCC extension. Of course for this one you could let format be the first vararg, but that trick is not always feasible.) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/

Re: a way to clear inactive RAM

2012-11-06 Thread Scott Ribe
Reopen All Windows from Last Session. Unless of course pages you're interested in include ones where you've had to log in to the site... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

<    1   2   3   4   5   6   7   8   >