Re: Getting key data out of the keychain

2016-01-01 Thread Chris Ridd
> On 1 Jan 2016, at 13:09, Andreas Mayer wrote: > > But I *still* don't know how to get at the key bytes of a SecKeyRef. :P Try asking on the apple-cdsa mailing list. It covers the security frameworks in OS X, including (hence the historical name) CDSA. Chris _

Re: Deleting an file that's been NSData memory mapped - safe?

2016-02-14 Thread Chris Ridd
> On 14 Feb 2016, at 11:45, dangerwillrobinsondan...@gmail.com wrote: > > Would the file itself be accessible by another process before your process > exits? Only if it manages to open it before it gets unlinked. After it gets unlinked, there’s no way to open it because there’s no longer any a

Re: Where are my bytes hiding?

2016-05-05 Thread Chris Ridd
> On 5 May 2016, at 20:01, Martin Wierschin wrote: > >> Those files are compressed by the filesystem. In HFS+/MacOS Extended that >> means that the data fork is empty and the file contents are stored in the >> resource fork or extended attributes structure. >> >> http://wiki.sleuthkit.org/index

Re: NSFileWrapper

2016-06-04 Thread Chris Ridd
> On 4 Jun 2016, at 23:02, Daryle Walker wrote: > >> On Jun 4, 2016, at 12:18 PM, Peter Hudson wrote: >> >> Hi Mike >> >> You're right - I want the behaviour of a package. Do you happen to know how >> I can achieve it? I had presumed it might be some mix of flag setting at >> system level

Re: real verses Virtual memory

2009-10-10 Thread Chris Ridd
On 10 Oct 2009, at 17:44, jon wrote: no, no control over the website, but on webView i turned off all the java script and flash and stuff, so that helps with the speed, not with it using virtual memory every 20 seconds, and it does need to be 20 seconds. So if you change your proce

Re: Better sorting using threads?

2010-03-12 Thread Chris Ridd
On 12 Mar 2010, at 20:20, Kyle Sluder wrote: > On Fri, Mar 12, 2010 at 11:55 AM, Andrew James > wrote: >> I've made the assumption that NSArray wraps an old school contiguous C-style >> array ( ala C++ std:::vector ) > > This assumption is false. There was a good analysis of NSArrays at

Re: Data managment

2010-04-12 Thread Chris Ridd
On 12 Apr 2010, at 17:33, Jens Alfke wrote: > There are also other data storage libraries that have a simpler data model > than sqlite (they’re like on-disk NSDictionaries) so they’re a bit simpler to > use and can potentially run faster. Tokyo Cabinet seems like the main > contender in that ar

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Chris Ridd
On 8 Aug 2011, at 08:13, vincent habchi wrote: >> Some apps, including iTunes, using /Users/Shared/ for DRM. It may still be >> world-writable in Lion [which I can't confirm as I haven't switched >> yet...come on 10.7.2...]. > > I can confirm /Users/Shared is world writable on 10.7; besides,

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Chris Ridd
On 8 Aug 2011, at 16:02, Kyle Sluder wrote: > On Aug 8, 2011, at 4:54 AM, Chris Ridd wrote: > >> >> Does OS X really support the sticky bit? Lion's suggests "no", >> though this line could be read a couple of ways: > > Yep, it's supported a

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Chris Ridd
On 10 Mar 2011, at 17:25, Leonardo wrote: > Hi Quincey, > if I re-open the same TIF file with Photoshop, I can quite see the > half-a-transparent pixels. So, it seems that the alpha information has been > properly saved within the TIF file. I would like to know how to manage a > file like this an

Re: OCTET_STRING_t -> NSString?

2011-03-29 Thread Chris Ridd
On 29 Mar 2011, at 19:00, Stephen J. Butler wrote: > Again, I think using lber is the best way to handle this data :) I > can't remember why, but once upon a time I wrote an encoder/decoder > and had to learn all the subtitles. liblber can only decode the restricted BER defined for use with LDAP

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Chris Ridd
On 7 Jun 2011, at 19:11, Eric E. Dolecki wrote: > This is for iOS. I've used XPath in other languages and it's totally > awesome. So I am using some flags and a counter to get things done... feels > like a total hack, but it's working. > > Sorry, I'll specify in the future for sure... You might

Re: getting last accessed date

2011-07-08 Thread Chris Ridd
On 8 Jul 2011, at 09:54, Rick C. wrote: > Sorry about that no I'm on Mac OS I was just sending the email from my iPhone > :-) > > Ok I double-checked and I think I am getting the same results as you are. > But iconForFile does not modify the Last Opened date that shows in Finder. > So the q

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Chris Ridd
On 8 Jul 2011, at 13:39, G S wrote: > Hi all. > > I put an MKMapView in my UI and tried to declare an IBOutlet for it, > but compilation fails with this error, in MKGeometry.h: > > "'isinf' was not declared in this scope" > > The line it's griping about is > > UIKIT_STATIC_INLINE BOOL MKMapRe

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
On 4 Jan 2010, at 13:50, Quincey Morris wrote: > On Jan 4, 2010, at 02:26, Brian Bruinewoud wrote: > >> What's the best way to get an NSDate object for 'today' such that the time >> is 00:00:00 (or any other constant). >> I not interested in the time, I only care about the year-month-day, but I

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
On 5 Jan 2010, at 19:41, Nick Zitzmann wrote: > > On Jan 5, 2010, at 12:23 PM, Chris Ridd wrote: > >> However Core Data models "dates" using NSDate. If you needed to model dates >> without times in Core Data (and be able to sort/filter on them) what would >

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
On 5 Jan 2010, at 20:56, Sean McBride wrote: > On 1/5/10 7:23 PM, Chris Ridd said: > >> However Core Data models "dates" using NSDate. If you needed to model >> dates without times in Core Data (and be able to sort/filter on them) >> what would you do? &

Re: display Mac id

2009-06-24 Thread Chris Ridd
On 24 Jun 2009, at 13:45, KK wrote: - (NSString *)getHWEthernetMAC { NSString *deviceName = @"en0"; // Ethernet device is en0 Embedding a device name seems a bit odd to me - why not use getifaddrs() and walk the list of actual interfaces? Something like... struct ifaddrs *ifp, *p

Re: Cocoa Frontend to SDL App

2009-07-11 Thread Chris Ridd
On 10 Jul 2009, at 15:26, Anthony Smith wrote: Thanks for the input. SDL is actually a simplified interface to OpenGL so I'm wanting to integrate an already made SDL game into a Cocoa front-end. I think handbrake and ffmpegx are trying to create a front-end for the command line tools where

Re: One last try: how do you make a bookmark bar like Safari?

2010-09-20 Thread Chris Ridd
On 20 Sep 2010, at 19:42, Brad Stone wrote: > I sent this out last week and go no replies. Please excuse me for sending it > out again but I want to try one more time in case someone has an answer. > > I've been spending some time searching and thinking about how I can make a > bookmark bar l

Re: Codesign failure

2010-11-19 Thread Chris Ridd
On 19 Nov 2010, at 14:04, Thorsten Lemke wrote: > Hello, > > I try to sign my app for the Mac App Store. > > But I get as reply from: > /usr/bin/codesign -f -s "3rd Party Mac Developer Application: Thorsten > Lemke" /volumes/Master/GC7/build/Release/GraphicConverter.app > > /volumes/Master/GC7

Re: UKKQueue and CVS

2010-12-24 Thread Chris Ridd
On 24 Dec 2010, at 16:43, Gary L. Wade wrote: > Source control systems may modify hidden files locally when performing a > commit; some have historically utilized the resource fork of the particular > file instead to keep that commit/modified state. Still others may choose to > use an xattr to

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Chris Ridd
On 18 Jul 2012, at 08:09, Lee Ann Rucker wrote: > In init, and only when they need it. They're all initialized to nil, which is > a perfectly reasonable value for an instvar to have; there's very rarely a > reason to do anything like > >>name = [NSString string]; > > because sending a met

Re: crash in

2013-05-24 Thread Chris Ridd
On 24 May 2013, at 18:31, Martin Hewitson wrote: > Great. I found an on-line validator > (http://www.w3schools.com/dom/dom_validate.asp) and it finds no errors. > > Back to the crash log: do the reported errors mean that there's something > wrong with the XML file? I mean, this file is create

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-10 Thread Chris Ridd
On 10 Jun 2008, at 05:12, Mark Munz wrote: Just wishing for the problem to go away or blaming external criteria will almost guarantee that nothing gets done. Filing bugs is how you, the developer, communicate your needs to Apple. Since ICU is open source, the other productive thing to do woul

Re: Read lines from very large text file

2009-02-06 Thread Chris Ridd
On 7 Feb 2009, at 05:39, Clark Cox wrote: On Fri, Feb 6, 2009 at 9:30 PM, Sean McBride wrote: Joar Wingfors (j...@joar.com) on 2009-02-06 12:06 AM said: How can you guarantee a file's existence? sudo rm -f? How about calling open() on it? :) But note the latter part of the sentence: "

Re: Porting SetupComm function in Mac

2008-11-02 Thread Chris Ridd
On 3 Nov 2008, at 07:25, Rakesh Singhal wrote: This API setups some communication parameters for communication devie. Here I am writing library for serial port. There are some more APIs, which I am not able to understand liek following: CreateEvent(0,true,false,0); SetCommMask(m_hFile,dwEv

Re: How to use NSString with CommonCrypto HMAC correctly?

2008-12-13 Thread Chris Ridd
On 13 Dec 2008, at 16:01, Alex Reynolds wrote: I am trying to use the HMAC SHA-1 components of Apple's CommonCrypto library with NSStrings, and I am running into some difficulty. I have the following method: - (NSString *) hmacSha1:(NSString *)key data:(NSString *)data { unsi

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Chris Ridd
On 24 Mar 2009, at 15:22, James Maxwell wrote: - (void)trainNetworkOnMIDIData { NSArray *pitchSlices = [[self MIDITrainingData] objectAtIndex:0]; NSArray *rhythmSlices = [[self MIDITrainingData] objectAtIndex:1]; int sliceCount = [

Re: Memory-mapped sub-data?

2017-02-27 Thread Chris Ridd
> On 27 Feb 2017, at 16:56, Jens Alfke wrote: > > >> On Feb 26, 2017, at 2:34 PM, Daryle Walker wrote: >> >> If I take a "subdata" of a memory-mapped (NS)Data, does it stay mapped (i.e. >> use a range and reference)? Or does a full copy get made? I'm thinking of >> making a parser be a sub-

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread Chris Ridd
> On 6 Mar 2017, at 13:28, davel...@mac.com wrote: > > I have an iOS app (Attendance2) written in Objective-C. One of my users > upgraded to the public 10.3 iOS beta and reported he could no longer open his > documents (I have a subclass of UIManagedDocument so they are Core Data files > store

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-09 Thread Chris Ridd
> On 8 Mar 2017, at 22:56, Peter Edberg wrote: > >> >> On Mar 8, 2017, at 1:44 PM, David Reed wrote: >> >> Thanks Peter. >> >> I am going to try to find time in the next few days to file a bug report. >> I'll obviously include this information. Is there anything else you think I >> should

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-22 Thread Chris Ridd
> On 22 Mar 2017, at 09:05, Alastair Houghton > wrote: > > In the context of filesystems (and specifically filenames), the phrases “bag > of bytes” and “bunch of bytes” have a fairly specific meaning. The point is > that the filesystem doesn’t inspect the bytes it’s given, and doesn’t care

Re: Thoughts on Objective-C++

2019-11-12 Thread Chris Ridd via Cocoa-dev
> On 12 Nov 2019, at 21:14, Jean-Daniel via Cocoa-dev > wrote: > > > >> Le 12 nov. 2019 à 21:30, Richard Charles via Cocoa-dev >> a écrit : >> >> >>> On Nov 12, 2019, at 1:16 PM, GNDGN wrote: >>> >>> ‘It’s like giving a glass of ice water to somebody in hell’ - Jobs >>> >> >> Apple re

Re: Retrieving the EXIF date/time from 250k images

2023-01-08 Thread Chris Ridd via Cocoa-dev
> On 7 Jan 2023, at 23:31, Gabriel Zachmann via Cocoa-dev > wrote: > >> >> I wonder if there is a method to load the EXIF data out of the files without >> opening them completely. That would seem like the ideal approach. > > That's the approach I am looking for, but I haven't found any API