Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Ken Thomases
On Feb 22, 2014, at 1:44 AM, jonat...@mugginsoft.com wrote: On 22 Feb 2014, at 00:12, Ken Thomases k...@codeweavers.com wrote: On Feb 21, 2014, at 3:17 PM, jonat...@mugginsoft.com wrote: So I want to be able to send the same message to any class and get an appropriate void* pointer.

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Jonathan Hull
Ken is right about the internal representation of NSNumber not being something you can count on (as it is a class cluster). You should be able to count on the format of the data returned from its methods though (e.g. -integerValue, -floatValue). Out of curiosity, are there any constraints on

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread jonat...@mugginsoft.com
On 22 Feb 2014, at 08:32, Ken Thomases k...@codeweavers.com wrote: There's no one representation of an NSNumber's content. I think that this is the foundation of things. What there is is a reported representation as given by -objCType. The docs say, as I am sure you know: “ NSNumber objCType

Re: Disabling screen capture

2014-02-22 Thread Brad O'Hearne
Sent from my iPad On Feb 22, 2014, at 12:27 AM, Gary L. Wade garyw...@desisoftsystems.com wrote: You did go to this page, right? https://developer.apple.com/membercenter/index.action#requestTechSupport Yep, that's the one. I remembered one form on the site, not this one, that I had to

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Ken Thomases
On Feb 22, 2014, at 6:58 AM, jonat...@mugginsoft.com wrote: Now I don’t care know how NSNumber persists its value nor with what type it was initialised. What I do care about in this case is what -objCType returns. If I create a NSNumber like so: NSNumber *n = @((int)5); Then [n

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread jonat...@mugginsoft.com
On 22 Feb 2014, at 14:27, Jonathan Hull jh...@gbis.com wrote: I think the main objection everyone has is that they believe (as did I) that -getValue: is actually returning the internal representation of the object. That is a very pertinent point that we haven’t mentioned. -getValue:

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Ken Thomases
On Feb 22, 2014, at 9:33 AM, jonat...@mugginsoft.com wrote: On 22 Feb 2014, at 14:27, Jonathan Hull jh...@gbis.com wrote: I think the main objection everyone has is that they believe (as did I) that -getValue: is actually returning the internal representation of the object. That is a

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Jens Alfke
But there's already a fully functional ObjC-C# bridge in Mono, isn’t there? I know that’s what MonoTouch for iOS is based on. Doesn’t it already handle bridging of NSDictionaries to C# Maps? —Jens ___ Cocoa-dev mailing list

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Ken Thomases
On Feb 22, 2014, at 9:43 AM, Ken Thomases wrote: On Feb 22, 2014, at 9:33 AM, jonat...@mugginsoft.com wrote: -getValue: populates a pointer to a type matching -objCType. But there's no guarantee about what that type is. There's no guarantee that it's a scalar rather than a structure,

Re: Disabling screen capture

2014-02-22 Thread Uli Kusterer
On 21 Feb 2014, at 22:26, Bradley O'Hearne br...@bighillsoftware.com wrote: This is an app that the user has willfully installed, and has willfully launched, fully knowing its function and purpose. The app does nothing until the user launches it, the user can exit the app at any time, and no

Re: Disabling screen capture

2014-02-22 Thread Uli Kusterer
On 21 Feb 2014, at 23:30, SevenBits sevenbitst...@gmail.com wrote: Well, yes, but Apple has the source code to OS X. There’s an important difference in that users cannot simply just delete important OS components. In some other operating systems (e.g Linux) everything works with packages

Re: Disabling screen capture

2014-02-22 Thread Uli Kusterer
On 22 Feb 2014, at 00:56, Ron Hunsinger listrep...@erstesoft.com wrote: Parental controls with a Simple Finder is pretty close to kiosk mode. Just using Mac OS X Kiosk mode would probably be even closer. :-) But judging from the login terminals at 1 Infinite Loop, Kiosk mode doesn’t turn off

Re: Disabling screen capture

2014-02-22 Thread SevenBits
On Feb 22, 2014, at 12:28 PM, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 21 Feb 2014, at 23:30, SevenBits sevenbitst...@gmail.com wrote: Well, yes, but Apple has the source code to OS X. There’s an important difference in that users cannot simply just delete important OS components.

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread jonat...@mugginsoft.com
On 22 Feb 2014, at 16:55, Jens Alfke j...@mooseyard.com wrote: But there's already a fully functional ObjC-C# bridge in Mono, isn’t there? I know that’s what MonoTouch for iOS is based on. Doesn’t it already handle bridging of NSDictionaries to C# Maps? The MonoTouch bindings are from C#

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Gary L. Wade
NSDecimal is a structure with associated C-level functions that could theoretically work with the not-yet-supported floating point decimal types in LLVM that were in later versions of GCC whereas NSDecimalNumber is an Objective C class subclassed from NSNumber that provides NSDecimal

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread jonat...@mugginsoft.com
On 22 Feb 2014, at 15:32, Ken Thomases k...@codeweavers.com wrote: NSDecimalNumber can represent values that are outside of the range of doubles. So, _some_ NSDecimalNumber instances _may_ return d for double, but others definitely won't. I don’t think so. It is possible that this

Re: Disabling screen capture

2014-02-22 Thread Matt Gough
OK, So lets assume that you can’t actually prevent the screen being captured. Maybe a solution would be to prevent that captured data from surviving very long. e.g Install an FSEvents watcher and look out for image and movie files being created on the entire disk. Then delete them while your

Application size growing

2014-02-22 Thread Damien Cooke
Hi All, I write a video app for the auto industry basically, you shoot several short “segments” of your car and combine them then add a tune in the background. I take them in 1280X720 and then resize them and add the audio using AVFoundation. I store all the files I save into Documents/video

Re: Application size growing

2014-02-22 Thread Jens Alfke
On Feb 22, 2014, at 2:07 PM, Damien Cooke dam...@smartphonedev.com wrote: The problem is the app is gaining about 200Mb after each movie and the only cure is to delete the app. Where is this all going if I write all my stuff into one place and delete the directory later? If this reproduces

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Graham Cox
On 22 Feb 2014, at 11:58 pm, jonat...@mugginsoft.com wrote: There's no one representation of an NSNumber's content. I think that this is the foundation of things. What there is is a reported representation as given by -objCType. NSNumber's can be slippery buggers, in my experience. Why

Re: Application size growing

2014-02-22 Thread Roland King
On 23 Feb, 2014, at 7:19 am, Jens Alfke j...@mooseyard.com wrote: On Feb 22, 2014, at 2:07 PM, Damien Cooke dam...@smartphonedev.com wrote: The problem is the app is gaining about 200Mb after each movie and the only cure is to delete the app. Where is this all going if I write all my

6.1.6 for iPhones?

2014-02-22 Thread Rick Mann
There's an update to iOS 6.1 for iPod Touch 4th gen and iPhone 3GS, but none for other devices? http://support.apple.com/kb/DL1722 I haven't yet updated my phone (although I've updated my iPads), and really don't want to. -- Rick signature.asc Description: Message signed with

Re: Disabling screen capture

2014-02-22 Thread Scott Ribe
On Feb 22, 2014, at 10:31 AM, Uli Kusterer witness.of.teacht...@gmx.net wrote: Just using Mac OS X Kiosk mode would probably be even closer. :-) But judging from the login terminals at 1 Infinite Loop, Kiosk mode doesn’t turn off screen shots. I feel dirty for saying this ;-) But if you

Re: Disabling screen capture

2014-02-22 Thread dangerwillrobinsondanger
On 2014/02/23, at 13:35, Scott Ribe scott_r...@elevated-dev.com wrote: I feel dirty for saying this ;-) But if you can't disable screen shots, how about: using fsevents to watch for the files to be created, and delete them. (Or, in this case raise a big fat alarm so the proctor will

Re: 6.1.6 for iPhones?

2014-02-22 Thread Maxthon Chan
No. Either they are like iPhone 3G or iPad 1 which has been thrown off the iOS 6 train on the first place, or they are like iPhone 4 and iPad 2 get carried over to iOS 7. On Feb 23, 2014, at 10:58, Rick Mann rm...@latencyzero.com wrote: There's an update to iOS 6.1 for iPod Touch 4th gen and

OpenCL with gcl buffer handling

2014-02-22 Thread Gerriet M. Denkmann
// the host has a (big) malloced hostArray, on which OpenCl should work. - (void)makeBufferOfSize: (size_t)arraySize from: (void *)hostArray { _clArray = clCreateBuffer( context, CL_MEM_READ_WRITE | CL_MEM_USE_HOST_PTR, arraySize, hostArray, NULL ); _hostArray =