book for n00b

2013-01-16 Thread Scott Ribe
I know someone who's developed an interest in developing for Mac. No programming experience, some HTML, so classic newbie. Would Hillegass' book still be the best intro? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-

Re: Thread synchronization via queue

2013-01-17 Thread Scott Ribe
variable; there are Cocoa classes (NSConditionVariable iirc) for it; and I'd be surprised if there isn't something in GCD... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev maili

Re: Pointer was being free was not allocated

2013-02-13 Thread Scott Ribe
s? You're probably freeing a pointer that has already been freed--in other words "not currently allocated" as opposed to "never allocated". -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice __

Re: Turning off screen shot ability

2013-03-05 Thread Scott Ribe
requirement and drop 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 list. Contac

Re: Turning off screen shot ability

2013-03-06 Thread Scott Ribe
s/colleagues who work with truly confidential data, I have a rough idea how the DOD & NSA deal with top secret data. I'm pretty sure they would snicker at this "absolute, non-negotiable requirement" ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (

Re: Turning off screen shot ability

2013-03-06 Thread Scott Ribe
required by the licensing terms for DVD playback. It is also apparently easy to circumvent. -- 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: Global (all-user) preferences for an application

2013-03-19 Thread Scott Ribe
m.foo.bar should be able to write into /Library/Application Support/com.foo.bar/ without so much difficulty... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Global (all-user) preferences for an application

2013-03-20 Thread Scott Ribe
On Mar 19, 2013, at 11:26 PM, Jerry Krinock wrote: > > On 2013 Mar 19, at 20:26, Scott Ribe wrote: > >> Sure seems to me like signed package com.foo.bar should be able to write >> into /Library/Application Support/com.foo.bar/ without so much >> difficulty... &

Re: Watching a file for changes.

2013-03-20 Thread Scott Ribe
was introduced in 10.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 requests or moderator comments to the list. Contact

Re: Watching a file for changes.

2013-03-20 Thread Scott Ribe
On Mar 20, 2013, at 10:37 AM, Jay Freeman wrote: > At a lower level, there is always the C library function, "stat". Do "man > stat" for details. But you have to poll, which sucks. kqueue lets you block for an event. -- Scott Ribe scott_r...@elevated-dev.com http://

Re: Is there a pattern for creating an object with global scope?

2013-04-12 Thread Scott Ribe
and also some details about extern var declarations/definitions that vary between versions of C, are different questions ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing li

Re: Is there a pattern for creating an object with global scope?

2013-04-13 Thread Scott Ribe
27;t have that limitation, and always forget about the plain C rules. -- 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 adm

Re: Is there a pattern for creating an object with global scope?

2013-04-14 Thread Scott Ribe
cause weird nondeterministic bugs. They're not evil if you don't create dependencies ;-) Also, if you keep the number of such globals very low (I'm thinking < 10), you avoid most problems. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated

Re: File by index?

2013-04-17 Thread Scott Ribe
; > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/scott_ribe%40elevated-dev.com > > This email sent to scott_r...@elevated-dev.com > -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice _

Re: Saving NSDictionary, Enumeration error

2013-05-07 Thread Scott Ribe
have to synchronize access appropriately. Now, make the copy is a good idea, so that you only have to synchronize at that point, and after are free to modify the original while reading the copy. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-05

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Scott Ribe
rackpad, but not the mouse... -- 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 t

sandboxing and filename extensions

2013-05-14 Thread Scott Ribe
ing I need to configure in my app's info plist to specify that the app is expected to create .pdf files??? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@

Re: sandboxing and filename extensions

2013-05-15 Thread Scott Ribe
to get the file named in a usable manner (since Apple so wisely ditched _all_ support for "old-fashioned" file types), is to use a delegate, implement panel:validateURL:error:, and force the user to type ".pdf". Ugh. -- Scott Ribe scott_r...@elevated-dev.com http://www.elev

Re: sandboxing and filename extensions

2013-05-15 Thread Scott Ribe
at all what happens in 10.7 or 10.8. > No matter whether the extension is shown in the text field, the Save panel > returns a URL with the correct extension. Yes, in 10.6. > I have no idea why you might be seeing different behavior. Except … > On May 14, 2013, at 21:16 , Scott Rib

Re: sandboxing and filename extensions

2013-05-15 Thread Scott Ribe
FYI, I'm still supporting 10.5, so had never bumped the Base SDK beyond that, so wasn't getting compiler warnings about that deprecated method. Anyway, THANKS--I'm not sure I would ever have noticed that. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.c

Re: rate limiting calls

2013-05-28 Thread Scott Ribe
ds. If a timer ever fires, do your calculation. Now if you *want* an occasional intermediate update while the user is dragging, then compare values or current time in setValue... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-05

Re: rate limiting calls

2013-05-28 Thread Scott Ribe
bet the event loop is in a special tracking mode where it's handling (mostly) just the mouse events until the mouse is released. Which means my suggestion re NSTimer would not work either. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (

Re: Isolated process for each NSDocument of my app

2013-06-14 Thread Scott Ribe
main thread, regardless of anything you may do to prevent more than one thread at a time running the UI? -- 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) Pl

Re: Detect a Retina display

2013-06-20 Thread Scott Ribe
nce :) if ([self respondsToSelector: @selector(convertRectToBacking:)]) { GLsizei backingPixelWidth = (GLsizei)(backingBounds.size.width)... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

Re: Detect a Retina display

2013-06-20 Thread Scott Ribe
ults to 'id') >(Error)No viable conversion from 'id' to 'NSRect' (aka 'CGRect') You need base SDK set to 10.7 in order to be able to see 10.7 declarations and use them, and deployment target set to 10.6 in order to allow your code to load on 10.6. --

Re: Core Data Reverse Engineering KickStarter Project

2013-06-23 Thread Scott Ribe
r anyone to claim otherwise ;-) -- 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: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-24 Thread Scott Ribe
of primary keys to ids, and multimap's of primary keys to foreign keys... -- 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 p

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-24 Thread Scott Ribe
Did you mean > > std::maps of > > and > > multimaps of ? I was treating them as acronyms, even though they are not, because of course there is no class named "maps" nor "multimaps" in the standard library

Re: Core Data Reverse Engineering KickStarter Project

2013-06-25 Thread Scott Ribe
h the importer asserted to a crazy extent, so that you get notified of anything that it doesn't completely understand. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-d

Re: The cost of using objects rather than plain C variables

2013-07-07 Thread Scott Ribe
:vector?) Now if you really want speed, stop converting from text to floats, convert the file to a binary format containing floats before your users have to load it. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice _

Re: The cost of using objects rather than plain C variables

2013-07-07 Thread Scott Ribe
r for all I know may have original data that's not yet text. -- 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

Re: The cost of using objects rather than plain C variables

2013-07-07 Thread Scott Ribe
ld load the sections in parallel in different threads... -- 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 moderat

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Scott Ribe
s referring. -- 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 mo

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Scott Ribe
ed the stack. Do you have any stack-allocated arrays? -- 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

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Scott Ribe
ject Builder TorusKnotSoftware ilexsoft CrashReporter LaunchCodes Quartz Composer Transmission DEVONthink Little Snitch RapidWeaver TrueCrypt -- Scott Ribe scott_r.

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Scott Ribe
* chooses to set such a sloppy example... -- 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: Bundle Identifiers - and application support directory

2013-07-10 Thread Scott Ribe
hould be named by bundle identifier, not by application name. The list that I provided was the result of ls Application\ Support, so as you can see the convention of using bundle identifiers is generally not followed. -- Scott Ribe scott_r...@eleva

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Scott Ribe
On Jul 15, 2013, at 12:41 PM, Buddy Kurz wrote: > I was trying to avoid learning about the insides of a Word document. Good move. Doing that would probably take the rest of your life. Seriously. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 vo

Re: Threads

2013-07-19 Thread Scott Ribe
No. But that's not what you asked. You asked how to call setNeedsDisplay from another thread. What are you really trying to do? On Jul 19, 2013, at 2:09 PM, koko wrote: > All calls made by Cocoa to display the view will be done a separate thread? -- Scott Ribe scott_r...@elevated

Re: dev site down time is ridiculous

2013-07-24 Thread Scott Ribe
more, that they don't bother to > explain themselves. ??? The news has been ALL OVER the internet, and this list, and they've sent out emails to debs. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

Re: storage for context: value

2013-07-25 Thread Scott Ribe
set up the callback, and release it in the callback, you're safe--and that's a very common pattern I think. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@

Re: storage for context: value

2013-07-25 Thread Scott Ribe
single points of construction & destruction of the information. -- 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 requ

Re: NSTask interrupt exception

2013-07-25 Thread Scott Ribe
e call in order to make sure the property gets set to nil, because it can't hurt, and there's some tiny chance it will help. And of course you should make sure that you don't have some dumb bug that overwrites typesetTask betw

Apple Developer update phishing

2013-07-25 Thread Scott Ribe
count the fastest once the site comes back online. That would -really- suck! -- 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: Observing Time

2013-07-26 Thread Scott Ribe
rty solution, I've just set a timer to fire every 0.1 seconds. Then in the handler you check if the second changed since the last time, and do nothing if it hasn't. This gets you updating that appears smooth to the user, unless the main thread spends too much time doing something a

Re: Observing Time

2013-07-26 Thread Scott Ribe
adjusting the > offset to get the timer to fire a little early > and/or accomodate the actual fire time in the > code. Personally, I'd probably just do a non-repeating timer, set to fire at the next second roll-over. Alloc'ing, scheduling and releasing 1 timer per second

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Scott Ribe
f an entitlement to ~/Library/Preferences and then wander through the whole directory. -- 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: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Scott Ribe
d around accessing multiple shared prefs files, so I knew the answer to exactly one question, and you asked exactly that question. Ask me another question and see how little I really know about this ;-) -- Scott Ribe scott_r...@elevated-dev.com http://ww

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Scott Ribe
to access, check the file of the helper utility you're launching via NSTask, check every path you're using to make sure that you're ultimately using full paths and that they're correct. (I'd just use NSLog, and look at the console output after a run where it "doesn&#

Re: Observing Time

2013-07-27 Thread Scott Ribe
do all your updates double end = [[NSDate date] timeInterval]; if (end - start > 1) // you're screwed, give up ;-) else // setup timer for 1.0 - fmod([[NSDate date] timeInterval], 1) - (end - start) I don't remember why all the UNIXy stuff entered the discussion; it'

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-27 Thread Scott Ribe
d it was approved. But in my case they were my own preferences, so I can't make any statement as to what happens if you want access to somebody else's preferences. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice __

Re: Observing Time

2013-07-27 Thread Scott Ribe
complexity for 0 gain. -- 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: Observing Time

2013-07-27 Thread Scott Ribe
're complicating your life by anticipating and working around problems that simply don't exist, with complexity that probably wouldn't solve the problems even if they did exist. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice __

Re: Observing Time

2013-07-27 Thread Scott Ribe
ting, and more than 10ms is rare. And again, as has been pointed out to you REPEATEDLY, if the firing of NSTimer is lagging because your main thread is busy doing something else, you're not going to be able to update your UI anyway. -- Scott Ribe scott_r...@elevated-dev.com http://www.eleva

Re: Observing Time

2013-07-27 Thread Scott Ribe
Now, combine that with setFireDate: which allows you to adjust it every time… -- 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: Observing Time

2013-07-27 Thread Scott Ribe
On Jul 27, 2013, at 7:57 PM, Andy Lee wrote: > I'm trying again, this time creating a new NSTimer each time as suggested by > Scott Ribe. Will let it run a while and see if I notice any drift. FYI, I think that's fine. You could also take the approach of using a single

Re: Exiting non-POSIX threads?

2013-07-30 Thread Scott Ribe
inuing is completely unreliable. If your goal is to present a dialog to the user and ask that the user send diagnostic info to you, use an external process monitoring your logs and/or crash reports. (And don't try to log after an unhanded exception; log info before.) -- Scott Ribe scott_r

Re: Mixing Obj-C and C "methods"

2013-07-30 Thread Scott Ribe
tance variables. Interesting, did not know that. Not sure I'll ever need it… Plain C is one thing, plain C but with direct access to instance vars? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice __

Re: Mixing Obj-C and C "methods"

2013-07-30 Thread Scott Ribe
I knew. I'm sorry senator, I cannot recall if I ever did such a thing. But I knew it was possible ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Exiting non-POSIX threads?

2013-07-31 Thread Scott Ribe
On Jul 30, 2013, at 11:51 PM, Oleg Krupnov wrote: > One downside > of it though is that the user should launch the crashed app at least > one more time. Which is why he specifically mentioned the option of an external watchdog process. -- Scott Ribe scott_r...@elevated-dev

Re: Exiting non-POSIX threads?

2013-07-31 Thread Scott Ribe
or an innocuous purpose, but regardless, sending yourself information about your user's activity without your user's permission is exactly that. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

Re: Mixing Obj-C and C "methods"

2013-08-07 Thread Scott Ribe
have a far bigger problem. -- 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: IOS floating point performance

2013-08-08 Thread Scott Ribe
On Aug 8, 2013, at 6:37 AM, Roland King wrote: > shouldn't do that as long as one uses the correct functions, ie sinf() and > cosf(). But */+- promote… Keeping it all as float is not easy. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722

Re: IOS floating point performance

2013-08-08 Thread Scott Ribe
7;s what the 5th Edition (2002) says: "Prior to Standard C, implementations were required to convert all values of type float to type double before any operations were performed… In Standard C, operations can now be performed using type float…" So, in summary: GET OFF MY LAWN

Re: Is it possible to define class from interface builder?

2013-08-13 Thread Scott Ribe
, and so on? -- 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 moderators a

Re: Dismissing Open dlog before doc actually opens

2013-08-14 Thread Scott Ribe
On Aug 14, 2013, at 5:49 AM, Graham Cox wrote: > Well, just quickly looking at TextEdit & Preview for example, the Open dialog > is quite definitely non-modal (10.8). Not for me, also on 10.8. They are application-modal... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevat

Re: Dismissing Open dlog before doc actually opens

2013-08-14 Thread Scott Ribe
s did go non-modal a long time ago... -- 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 t

Re: Is it possible to define class from interface builder?

2013-08-14 Thread Scott Ribe
On Aug 14, 2013, at 8:53 AM, Fritz Anderson wrote: > I'm curious to know what a more-elegant solution would look like. The ability to, graphically using IB (or whatever we're calling it these days) in one nib, embed a view defined in another nib. -- Scott Ribe scott_r...@ele

Re: Variable Number of Parameters in Method

2013-08-21 Thread Scott Ribe
On Aug 21, 2013, at 5:29 AM, Alex Zavatone wrote: > However, this does: > > @interface NSArray (NSArrayCreation) ? That method has both common base types and a nil terminator. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0

Re: Decoding images in PDF files

2013-08-26 Thread Scott Ribe
on, but I can tell you that going the other way, take a bitmap, feed it through the zlib library, write it into the stream works. But watch out for the "predictor" value--if that's there, it means the stream is deltas instead of pixel values. -- Scott Ribe scott_r...@ele

Re: 30x faster JSON date parsing

2013-09-09 Thread Scott Ribe
hey were parsed... -- 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: 64-bit iOS

2013-09-10 Thread Scott Ribe
are impractical otherwise. Also, wouldn't it be nice if tech writers knew anything about their subject? I got $20 right here that sez the A7 has more than 2 general-purpose registers--anybody want to take that bet ;-) (Maybe somebody doesn't know the difference between a regi

64-bit iOS

2013-09-10 Thread Scott Ribe
Well, since nobody else has commented, let me be the first to say: YES! YES! YES! THANK YOU APPLE!! -- 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: 64-bit iOS

2013-09-10 Thread Scott Ribe
fit in cache. -- 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 moderat

Re: 64-bit iOS

2013-09-10 Thread Scott Ribe
On Sep 10, 2013, at 10:03 PM, Maxthon Chan wrote: > When you use the system call mmap(2) to map in a huge file you will find it > useful. Especially if you want to map more than one, unmap one, mmap another, and so on ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-d

Re: Guidance for Cocoa's steep learning curve

2008-05-14 Thread Scott Ribe
>> === If you are primarily an experienced C++ programmer (In my >> experience you will have the hardest time) > > > (2) I will have to personally disagree with this. I wonder, seriously, if it doesn't depend somewhat on whether or not you're a really good C+

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Scott Ribe
> if you've spent a lot of time abusing void * to > hack runtime dynamism into C++ Or if you've done it the right way, with templates--was more what I was thinking... 1-5 are all very good points. Much of what's been said here belongs in an intro document somewhere...

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Scott Ribe
ing the basics of Objective-C & Cocoa was dead easy. Starting to see the way it all fit together took longer. Getting a grip on the breadth of the whole framework, or the depth of how to modify behavior of standard classes--that takes a long time. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbyte

Re: Dynamic message typing problem

2008-05-16 Thread Scott Ribe
n int, casts 98.76 to the int 98, and passes those 4 bytes to a method that's expecting a float or double. You should be seeing a compiler warning about this. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Scott Ribe
ences. They're right there at the top; I don't know what Apple could do to make them more obvious. But much of the discussion re docs seems to indicate that some people remain totally unaware of these guides... -- Scott Ribe [EMAIL PROTECTED] http://ww

Re: Dynamic message typing problem

2008-05-16 Thread Scott Ribe
one class that takes a float, and one in another class that takes a different kind of argument, is ***not*** an easy thing to deal with. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-de

Re: Dynamic message typing problem

2008-05-16 Thread Scott Ribe
o ask questions. -- 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 coco

Re: Working through a problem...

2008-05-18 Thread Scott Ribe
> How do I get IB to select the tableView instead of the columnView? Get out of the column. Drag to the header or to the edge between columns. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mail

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-19 Thread Scott Ribe
do the ugly part on your own... -- 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 mo

Re: What is an id?

2008-05-22 Thread Scott Ribe
> ...for a text column > that would be an NSString or NSAttributedString, Also, NSNumber or NSDate. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Scott Ribe
> If I > want to do some Cocoa Networking, do I look at Cocoa > Networking, or > Networking > Cocoa? Either. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@

Re: File's Owner

2008-05-23 Thread Scott Ribe
umentation were inverted, so that it said "so that objects outside the nib can communicate with the nib objects", it might have made more sense to you. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa

Re: File's Owner

2008-05-23 Thread Scott Ribe
licks the save button, the method will be called, and the data will be saved. Or not, depending on various minor details, like the state of the connection to the database ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice __

Re: Scaling view to fill printed page

2008-05-25 Thread Scott Ribe
> Must I actually create a view with bounds that match that of the paper > at print time? No, but there are other things you have to get right, such as the values your view returns for the various methods that query for bounds/adjustments. Sorry, I don't remember the details. --

Re: if statement

2008-05-27 Thread Scott Ribe
= is assignment, == is equality test, so yes the conditions of both ifs do evaluate to 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

Re: Cocoa Classes from C++?

2008-05-27 Thread Scott Ribe
> like C++ objects as member > variables of an ObjC object This works fine if you set the right compiler options, which I think has been around since 10.3. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: Cocoa Classes from C++?

2008-05-27 Thread Scott Ribe
> It requires both Mac OS X 10.4 and GCC 4, actually OK. I thought I had used it earlier, but thinking back more carefully, no, it was not until Tiger that I was able to do this. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 vo

Re: Alert Sheets hard wired in Interface Builder

2008-05-28 Thread Scott Ribe
lty as everybody else locating it the first time. And then again, later, when I had not used it for a while ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Scott Ribe
extremely simple language compared to C++, and you won't need to become more than a beginner to do what you've described.) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Coc

Re: Rethinking my approach; rather overwhelmed.

2008-06-17 Thread Scott Ribe
7;s based on an accurate understanding of your goals. -- 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

Re: [Moderator] List Guidelines - Must Read

2008-06-26 Thread Scott Ribe
ather than just click to acknowledge, make them type in something confirming the NDA. -- 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 m

Table view tab order problem

2008-06-30 Thread Scott Ribe
setObjectValue or textDidEndEditing and call editColumn:Row: from there??? -- 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

Re: Scaled Printing

2008-07-01 Thread Scott Ribe
y 0.75, and there you have it: drawing at 1.0. -- 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: Scaled Printing

2008-07-01 Thread Scott Ribe
My apologies, I was thinking of auto-scaling. -- 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

Re: Style Question (Robert Claeson)

2008-07-04 Thread Scott Ribe
atter of > fact, when I take over someone else's code, the first thing I do is > spend the time needed (however much required) to rearrange the position > of the braces to conform with the documented style indicated in the > above references. Me too, but I think I'm

<    1   2   3   4   5   6   7   8   >