Re: LGPL code in the Mac App Store?

2016-01-29 Thread Eric Wing
> > One thing I forget to add; probably the *very best way* to address this > issue is to contact the library author and say, “Hey, I want to use your > LGPL code in my Mac app and put it on the App Store; is that ok? Do you mind > if people can’t dynamically link their own copy, because really,

Re: LGPL code in the Mac App Store?

2016-01-29 Thread Eric Wing
> I think a better technical approach would be to embed the library as a > framework in your app, but arrange that if a version of the framework is in > (say) /Library/Frameworks, that one is dynamically loaded instead of the > built-in framework. You might also need to be able to provide the

Re: LGPL code in the Mac App Store?

2016-01-29 Thread Eric Wing
By the way, for what it's worth, Apple has some LGPL code on the system. For example, JavaScriptCore and WebKit are under the LGPL. (Though I suspect the majority of the copyright is now Apple and they won't file a claim against themselves.) ___

Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?

2015-05-20 Thread Eric Wing
On 5/20/15, Jens Alfke j...@mooseyard.com wrote: On May 20, 2015, at 4:57 PM, Eric Wing ewmail...@gmail.com wrote: It depends on how pedantic you want to be. As little as possible, honestly. Did you go back and read the original question? The OP is having trouble with basic property-vs-ivar

Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?

2015-05-20 Thread Eric Wing
Which are they, ivars or properties? I don't know. I can't tell. Is there any way to inspect an instance and tell if it is a property or an ivar if both the property and ivar have the same name? Fun times, fun times. You could use the Objective-C runtime to find out which things are

Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?

2015-05-20 Thread Eric Wing
On 5/20/15, Jens Alfke j...@mooseyard.com wrote: On May 20, 2015, at 4:08 PM, Eric Wing ewmail...@gmail.com wrote: You could use the Objective-C runtime to find out which things are properties. You could, but isn't it a lot easier to just look at the character before the name and check

Re: NSInteger/NSUInteger Considerations (64 bit)

2014-03-28 Thread Eric Wing
On 3/28/14, Rick Mann rm...@latencyzero.com wrote: The best thing is to code it up and try it. I agree. And please share your findings. I coincidentally ran a similar experiment on iOS (iPad mini, 1st gen). I switched a non-optimized codebase using double as its floating type to float, and for

Re: Xcode 5 Obj-C++

2014-01-30 Thread Eric Wing
On 1/30/14, Jens Alfke j...@mooseyard.com wrote: On Jan 30, 2014, at 4:32 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: It is barely possible to create a stable ABI in C++. This language suffers all possible form of fragile base class problem: Add a new ivar, all subclasses and stack

Re: Xcode 5 Obj-C++

2014-01-29 Thread Eric Wing
On 1/29/14, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 30 Jan 2014, at 00:16, Rui Pacheco rui.pach...@gmail.com wrote: To those of you doing Objective-C++ apps, is there a difference in terms of performance or memory usage? I've noticed that TextMate 2, which is done in

Re: NSURLSession + Bonjour to do peer-to-peer file transfers?

2013-12-28 Thread Eric Wing
On 12/26/13, Jens Alfke j...@mooseyard.com wrote: On Dec 25, 2013, at 7:26 AM, Eric Wing ewmail...@gmail.com wrote: I can publish my iPhone via Bonjour and make my Mac discover and resolve the address. I try to create a NSURLSessionDownloadTask on my Mac and a NSURLSessionUploadTask on my

Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Eric Wing
I’ve been prototyping an internal tool that receives and displays lots of text data. I wanted to display this kind of like how Terminal.app continuously appends text and keeps scrolling to the bottom as more data is added. I used a stock NSTextView and keep appending to the backing NSTextStorage.

Re: Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Eric Wing
On 12/28/13, Jerry Krinock je...@ieee.org wrote: On 2013 Dec 28, at 15:14, Eric Wing ewmail...@gmail.com wrote: 1) I figured out that the bottleneck was in scrollRangeToVisible call. You could see if you have better luck with -[NSView scrollPoint:]. 2) -[NSBigMutableString

Re: NSURLSession + Bonjour to do peer-to-peer file transfers?

2013-12-26 Thread Eric Wing
On 12/25/13, Stephen J. Butler stephen.but...@gmail.com wrote: NSURLSession is a fancy HTTP client. It needs to talk to an HTTP server. None of the included iOS and OS X frameworks (that I'm aware of) include an HTTP server. You can either run an HTTP server on the device in your app (

NSURLSession + Bonjour to do peer-to-peer file transfers?

2013-12-25 Thread Eric Wing
Is it possible to use NSURLSession + Bonjour to do peer-to-peer like file transfers? My example situation is that I have a Mac and iPhone. The iPhone has a generated file I want to copy over to the Mac through the wireless. I can publish my iPhone via Bonjour and make my Mac discover and resolve

Re: Best solution for game loop on OSX?

2013-12-17 Thread Eric Wing
On 12/17/13, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 17 Dec 2013, at 00:15, Dan Treiman dtrei...@mac.com wrote: The two best solutions (and by best I mean least time-wasting) are CVDisplayLink and NSTimer. CVDisplayLink synchronizes with the display refresh rate and gives you

Re: Superimposing NSViews over an SKView

2013-10-31 Thread Eric Wing
On 10/30/13, Charles Srstka cocoa...@charlessoft.com wrote: In Apple's Sprite Kit documentation, it claims: Because Sprite Kit content is rendered by a view object, you can combine this view with other views in the view hierarchy. For example, you can use standard button controls and place

Re: Trying to understand/prevent crash using restorableStateKeyPaths in NSPersistentUI Work

2013-07-29 Thread Eric Wing
There are a couple of interesting points here. Perhaps the appearance of 'probeGC' in Eric's backtrace suggests he's using garbage collection. Are you doing so too? If not, then it wouldn't be surprising that the crash is more reproducible for you. Eric was racing garbage collection for a

Re: Staying on integrated GPU while using NSOpenGLView

2013-06-12 Thread Eric Wing
On 6/11/13, Nick Zitzmann n...@chronosnet.com wrote: No, you're not doing anything wrong. I was curious about this as well, and I noticed that, starting in 10.8.4, instantiating an IKImageBrowserView will not toggle the discrete GPU. So I tried to figure out what it was doing, and found it

Re: NSMapTable with C strings as keys

2013-05-30 Thread Eric Wing
On 5/29/13, Charles Srstka cocoa...@charlessoft.com wrote: On May 29, 2013, at 10:29 PM, Eric Wing ewmail...@gmail.com wrote: But I did do hash table benchmarks a few months back: http://playcontrol.net/opensource/LuaHashMap/benchmarks.html Perhaps off topic, but I wonder if it would

Re: NSMapTable with C strings as keys

2013-05-30 Thread Eric Wing
On 5/29/13, Jens Alfke j...@mooseyard.com wrote: On May 29, 2013, at 8:29 PM, Eric Wing ewmail...@gmail.com wrote: CFDictionary I did not formally do in the benchmark, but I did run on the side for curiosity. I found that the C-string to CFString conversion ended up putting it at the bottom

Re: NSMapTable with C strings as keys

2013-05-30 Thread Eric Wing
On 5/30/13, Jens Alfke j...@mooseyard.com wrote: On May 29, 2013, at 11:35 PM, Eric Wing ewmail...@gmail.com wrote: In my introduction, I was fairly adamant that time lost to impedance mis-match should be measured because my interest was real performance in using these libraries for projects

Re: NSMapTable with C strings as keys

2013-05-29 Thread Eric Wing
I'm not disagreeing with anything about knowing/optimizing your real bottlenecks. But I did do hash table benchmarks a few months back: http://playcontrol.net/opensource/LuaHashMap/benchmarks.html CFDictionary I did not formally do in the benchmark, but I did run on the side for curiosity. I

Re: Harnessing Perl Scripts within a Project

2012-11-06 Thread Eric Wing
On 11/6/12, John Delacour j...@bd8.com wrote: On 06/11/2012 00:47, Jens Alfke wrote: One compromise you might consider is using Ruby, which has pretty decent integration with Cocoa. (Ditto for Python, but Ruby is more Perl-esque.) It’s possible to write Cocoa apps entirely in those

Re: lion/mt. lion: preventing qtmovieview from taking key strokes

2012-09-15 Thread Eric Wing
On 9/15/12, Matthew Weinstein mwein...@kent.edu wrote: Dear programmers, I have a window with a nstextview and a qtmovieview.. The problem is that the movieview steals all of the keystrokes so the left and right arrow keys never make it to the nstextview. I have tried subclassing qtmovieview

Re: What is NSView's anchorPoint/origin/axis for setFrameCenterRotation?

2012-09-07 Thread Eric Wing
On 9/6/12, Eric Wing ewmail...@gmail.com wrote: I want to rotate an NSView around its center. (Example: Imagine me rotating a magnetic compass around so the North pointer rotates around to the bottom. I thought setFrameCenterRotation would do this for me. But when I try it (10.8), it always

Re: Advice for rotating content in a window so it doesn't get clipped

2012-09-07 Thread Eric Wing
On 9/7/12, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 06.09.2012, at 09:48, Eric Wing ewmail...@gmail.com wrote: I want the thing I'm rotating to stay centered relative to its original screen position, so when I resize the window, I need the view to not shift in absolute terms despite

Advice for rotating content in a window so it doesn't get clipped

2012-09-06 Thread Eric Wing
I have a bunch of content in a non-square window I want to rotate with setFrameCenterRotation (using the animator). The content fills the existing window perfectly (i.e. to the edges), so for it to not be clipped on the edges of the window when it rotates, I need to increase the window size

Re: CA_DEBUG_TRANSACTIONS=1

2012-09-06 Thread Eric Wing
On 9/5/12, John MacMullin john.macmul...@cox.net wrote: I am getting the following message: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces. What in general would be causing this? Just another data point.

What is NSView's anchorPoint/origin/axis for setFrameCenterRotation?

2012-09-06 Thread Eric Wing
I want to rotate an NSView around its center. (Example: Imagine me rotating a magnetic compass around so the North pointer rotates around to the bottom. I thought setFrameCenterRotation would do this for me. But when I try it (10.8), it always rotates about the bottom-left corner, not the center.

Trying to understand/prevent crash using restorableStateKeyPaths in NSPersistentUI Work

2012-08-24 Thread Eric Wing
I am struggling with a crash when implementing restorableStateKeyPaths in my NSWindowController for my main window in my app. I discovered that I needed to save out the window frame before I entered fullscreen so when the user exits fullscreen, I can go back to the original value. For this, I

Trying to find workarounds for serious memory leak in IKImageView

2012-08-15 Thread Eric Wing
I just discovered IKImageView leaks a huge amount of memory (possibly the entire image data) when quickly releasing an instance and then creating a new one and do it again. There are also smaller memory leaks in the implementation reported by the Instruments Leaks tool. Based on my analysis, I

Re: Trying to find workarounds for serious memory leak in IKImageView

2012-08-15 Thread Eric Wing
An update: I tried to use the performSelector:withDelay workaround in my main app. It doesn't seem to work there for reasons I can't explain. So I'm pretty stuck up a creek now. Any other ideas greatly appreciated. Thanks, Eric ___ Cocoa-dev mailing

Re: 32-bit on 10.8

2012-08-10 Thread Eric Wing
On 8/10/12, Jayson Adams jay...@circusponies.com wrote: On Aug 10, 2012, at 5:57 PM, Charles Srstka wrote: On Aug 10, 2012, at 7:44 PM, Jayson Adams jay...@circusponies.com wrote: Except Apple itself says it might not make sense to do so. From the 64-bit Transition Guide:

Re: 32-bit on 10.8

2012-08-02 Thread Eric Wing
On 8/2/12, koko k...@highrolls.net wrote: Thanks. I asked the question because I saw here one time that you don't want to be the app causing 32-bit versions to load. As long as it is not a system resource problem, then all is well as far as I am concerned. It depends on how much you need

Re: Images with direct memory access

2012-07-27 Thread Eric Wing
On 7/27/12, Jens Alfke j...@mooseyard.com wrote: Keep in mind that accessing the image pixels directly can hurt drawing performance. Your code can only access the pixmap if it's in system RAM, while GPU acceleration requires that the pixmap be in VRAM. So messing with the pixels may either

Re: 10.6 SDk and 10.5 Deployment

2012-06-28 Thread Eric Wing
On 6/28/12, Gary L. Wade garyw...@desisoftsystems.com wrote: Whenever you support an earlier OS, you should always have that earliest and all intermediate SDKs available, and you should make it a standard practice to build your products against those SDKs at least before releasing to customers

Re: 10.6 SDk and 10.5 Deployment

2012-06-28 Thread Eric Wing
On 6/28/12, Kyle Sluder k...@ksluder.com wrote: On Jun 28, 2012, at 1:58 PM, Eric Wing ewmail...@gmail.com wrote: One additional gotcha that I have hit multiple times is that if your application links to system .dylibs (not .frameworks), Xcode links to the explicit filename versioned .dylib

Re: MyRecorder and 64-bit Intel

2012-06-09 Thread Eric Wing
On 6/9/12, Todd Heberlein todd_heberl...@mac.com wrote: Using the code from Apple's MyRecorder example, I had to switch my architecture to 32-bit Intel in order to get it to work. Why can't I get it to work for 64-bit Intel? BACKGROUND: I was following the example in Apple's QTKit

Re: QTKit from UNIX app?

2012-06-09 Thread Eric Wing
On 6/9/12, Todd Heberlein todd_heberl...@mac.com wrote: Probably a naive question, but can I use QTKit (or is there a better library?) to capture images (or videos) inside a UNIX helper application? I've never tried using Cocoa (and related) objects outside a regular Cocoa application with a

Re: Missing header files/folders?

2012-03-23 Thread Eric Wing
On 3/22/12, Chris Hanson c...@me.com wrote: On Mar 22, 2012, at 11:24 AM, Eric Wing wrote: Correct. Note that when setting the path, you can get away with just pointing to the copy of Xcode that you'd like to bless: sudo xcode-select -switch /Applications/Xcode.app Interesting

Re: Missing header files/folders?

2012-03-22 Thread Eric Wing
Correct. Note that when setting the path, you can get away with just pointing to the copy of Xcode that you'd like to bless: sudo xcode-select -switch /Applications/Xcode.app Interesting, but as a courtesy note to everybody, those of us who write and use 3rd party tools that depend on

Re: Missing header files/folders?

2012-03-21 Thread Eric Wing
xcode-select actually ships with the OS, not Xcode. However, Xcode 4.3 no longer automatically sets this path so it the path is left in an uninitialized or prior Xcode state. For default locations, Xcode 4.3 needs to be /Applications/Xcode.app/Contents/Developer Prior versions need to be

NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?

2012-03-13 Thread Eric Wing
I have a very simple custom view where I override keyDown: and keyUp:. I just put an NSTextField on top of my custom view in Interface Builder (subview of my custom view). When I type in the text field (it has focus), I noticed that my custom view is picking up all the keyEvents. I wasn't

Re: NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?

2012-03-13 Thread Eric Wing
On 3/13/12, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: On 13 Mar 2012, at 22:50, Eric Wing wrote: I have a very simple custom view where I override keyDown: and keyUp:. Is there a way to get the text field (and any other widgets that might do this like NSTextView) to consume

Re: ivar access during -finalize

2012-03-10 Thread Eric Wing
Just another angle on your original problem, have you considered using CFRetain and CFRelease on _myIvar? These are still meaningful in garbage collection mode. Using CFRetain when you get/create _myIvar, it would presumably still be alive in your finalize method until you call CFRelease on it.

Re: ivar access during -finalize

2012-03-10 Thread Eric Wing
On 3/10/12, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Mar 10, 2012, at 17:08 , jonat...@mugginsoft.com wrote: On 10 Mar 2012, at 22:51, Eric Wing wrote: Just another angle on your original problem, have you considered using CFRetain and CFRelease on _myIvar

Re: Finding object array index when iterating through array

2012-03-08 Thread Eric Wing
On 3/6/12, Prime Coderama prime.coder...@gmail.com wrote: I have an array and I am iterating through it using this technique: for (id object in array) { // do something with object } Is there way to obtain the object's current array index position or do I have to add a counter?

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-25 Thread Eric Wing
On 2/24/12, Sean McBride s...@rogue-research.com wrote: On Fri, 24 Feb 2012 10:36:51 -0700, Keary Suska said: I don't believe this is the case. There can be funny issues with BOOL types, such that BOOL == YES is an inadvisable construct, since your BOOL could be an integer of any value.

Re: Playing Music in Objective C

2012-02-12 Thread Eric Wing
On 2/12/12, Pascal Harris 45rpmli...@googlemail.com wrote: My game is playable - so I'm polishing the hell out of it right now. I've never written a game before though so, whilst I can manage the graphics okay (it's a puzzle, so NSMatrix does nicely), I'm utterly perplexed as to how to play

Re: Playing Music in Objective C

2012-02-12 Thread Eric Wing
I probably should have included this YouTube link from Cocoaheads. http://www.youtube.com/watch?v=6QQAzhwalPI Don't let the title fool you. I make plenty of references to Mac for AVFoundation, and approach OpenAL from a cross platform perspective. ___

Re: Determine sandbox/entitlements at runtime?

2011-12-15 Thread Eric Wing
On 12/15/11, Tim Schröder t...@timschroeder.net wrote: Questioning [[[NSProcessInfo] processInfo] environment] should work to check whether sandboxing is enabled or not, but not for checking entitlements. As use of the Scripting Bridge will be covered by a temporary entitlement at best, better

Determine sandbox/entitlements at runtime?

2011-12-14 Thread Eric Wing
For a Mac app, is there a way to determine if sandboxing is enabled in an app and which entitlements are set, all at runtime? I am writing a middleware framework where I don't know what the user is actually doing and they may not be able to change the compile options of my framework. If the app

How does LaunchServices decide which version of an app to open?

2011-11-11 Thread Eric Wing
I have a URL scheme handler for my app so I can invoke from other apps, etc. With my particular project, we put out daily beta builds so our advanced users frequently have multiple versions of our app on their disk. I am trying to understand how Mac (I'm running Lion) decides which version to

Re: (Problems) Scaling NSViews with scaleUnitSquareToSize

2011-09-29 Thread Eric Wing
Oops. Didn't realize the photo album (image links) needed permissions changed. That should be fixed now. ___ 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: Equivalent of UITextField's textField:shouldChangeCharactersInRange:replacementString for NSTextField

2011-09-28 Thread Eric Wing
We really recommend looking at the approach I described earlier using NSFormatter subclass for input validation. Unfortunately, I am not actually formatting or validating anything so this isn't helpful for me. I am working on a middle-layer framework and what I am interested in is the text

(Problems) Scaling NSViews with scaleUnitSquareToSize

2011-09-28 Thread Eric Wing
I am working on a code base that happens to be using scaleUnitSquareToSize. I think the intent is to actually scale the view to various scale factors like 2 and .5. I have been in the process of making said view layer-backed (Core Animation) and adding subviews to it. I have been seeing a lot of

Re: Equivalent of UITextField's textField:shouldChangeCharactersInRange:replacementString for NSTextField

2011-09-27 Thread Eric Wing
On 9/21/11, Jens Alfke j...@mooseyard.com wrote: On Sep 21, 2011, at 7:42 PM, Eric Wing wrote: I have been using the delegate callback textField:shouldChangeCharactersInRange:replacementString for UITextField. I am trying to port code over to Mac using NSTextField. Is there something

Equivalent of UITextField's textField:shouldChangeCharactersInRange:replacementString for NSTextField

2011-09-21 Thread Eric Wing
I have been using the delegate callback textField:shouldChangeCharactersInRange:replacementString for UITextField. I am trying to port code over to Mac using NSTextField. Is there something that provides similar functionality? Thanks, Eric -- Beginning iPhone Games Development

Re: August Cocoaheads - Silicon Valley Meeting

2011-08-30 Thread Eric Wing
My monster 2 hour presentation on Audio on iOS OpenAL is finally available on YouTube. http://www.youtube.com/watch?v=6QQAzhwalPI Thanks, Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ On 8/17/11, Eric Wing ewmail...@gmail.com wrote: Reminder: Cocoaheads

Layer Backed WebView: assertion failed/CGGStackRestore crash on Google News page

2011-08-26 Thread Eric Wing
Just wondering if anybody has come across this problem. It looks like an Apple bug to me, but I wanted to make sure or learn if there is a reasonable workaround. I am trying to get a layer backed WebView to work in an OpenGL app. (I want to put a web view on top of an OpenGL surface, either a

Re: August Cocoaheads - Silicon Valley Meeting

2011-08-17 Thread Eric Wing
Reminder: Cocoaheads Silicon Valley is tomorrow. There is a room change. Go here for info: http://groups.google.com/group/cocoaheads---silicon-valley So I'm still unclear what the itinerary is, so I'm going to take the initiative and claim I will be presenting. I will present Audio on iOS and

Re: How to pass command line parameters to Cocoa App

2011-08-16 Thread Eric Wing
On 8/16/11, Abdul Sowayan asowa...@vectorworks.net wrote: Hi folks, If I launch my app from the command line, I can pass it options like this (this would be the argc, argv parameters to main): ./Foo.app/Contents/MacOS/Foo -ApplePersistenceIgnoreState YES NSArgumentDomain under

[ANN] LuaCocoa v.0.3 released

2011-07-26 Thread Eric Wing
I am happy to announce the third public release of LuaCocoa (v. 0.3). This version is mostly a Xcode 4 and Lion compatibility release, but also includes a handful of improvements. LuaCocoa is a next generation Lua/Objective-C bridge that uses BridgeSupport and libffi on Mac OS X to provide full

Re: Caching Streaming video

2011-06-28 Thread Eric Wing
I am trying to playback video in my iOS app while I am loading and caching it at the same time. I fetch the video using a NSURLConnection and then store it in a local file, I start video playback of the local video file after a certain number of bytes are received. I have it working great in

Re: ScriptingBridge Not working same as Applescript

2011-06-12 Thread Eric Wing
On 6/12/11, Abhinav Tyagi apple.lists...@gmail.com wrote: Hi, I am trying to get the details of current track being played in iTunes from cocoa application. I am using ScriptingBridge by generating iTunes from the command line using The Applescript which i have successfuly tested in

Re: Access main window of other Applications

2011-04-08 Thread Eric Wing
On 4/7/11, Florian Pilz fpil...@googlemail.com wrote: Hi there! I'm looking for an easy way to access the main window of another Application, thus not my own. (The key window would be fine as well, if that is easier.) I already searched via Google to solve this task and I found the

Re: Framework Installation Directory

2011-04-08 Thread Eric Wing
On 4/8/11, Vyacheslav Karamov ubuntul...@yandex.ru wrote: I'm not sure what you need exactly, but it hope it would be helpful for you http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/ I agree with Vyacheslav. You should look at @rpath. -Eric -- Beginning iPhone Games Development

Re: An Open With... submenu...

2011-04-02 Thread Eric Wing
On 4/2/11, Jason Harris ja...@jasonfharris.com wrote: Hi All, Two related questions. (1) Managing the default application for documents from a file manager type of appication. (2) An Open With... menu. With LuaCocoa, I have an example program called HybridCoreAnimationScriptability which

[ANN] LuaCocoa v.0.2 released

2011-03-08 Thread Eric Wing
I am happy to announce the second public release of LuaCocoa (v. 0.2). This version is faster, smaller, and better. LuaCocoa is a next generation Lua/Objective-C bridge that uses BridgeSupport and libffi on Mac OS X to provide full automatic bindings to Objective-C and the more difficult areas of

10.6 Snow Leopard API for blocking screensaver/idle?

2011-02-14 Thread Eric Wing
Is there an API in Snow Leopard to suppress/block/prevent the screensaver from coming up? (I work with a lot of games/multimedia where I don't want the screen to go to screensaver and the input devices in use may not reset the idle counter.) For some reason I thought there might have been a new

Re: 10.6 Snow Leopard API for blocking screensaver/idle?

2011-02-14 Thread Eric Wing
Thanks for all the replies! That was what I needed to know. -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Loading the Foundation at runtime

2011-01-26 Thread Eric Wing
On 1/24/11, Mathieu Suen mathieus...@yahoo.fr wrote: Hi All, In other to write a binding for a language I need to load the Foundation framework at run time. So just to test I wrote a simple example: --objc-test.c-- #include objc/runtime.h #include stdio.h #include

[ANN] LuaCocoa: A next-gen Lua/Objective-C bridge

2010-11-30 Thread Eric Wing
I am happy to announce the very first public release of LuaCocoa (v. 0.1.0). This is a next generation Lua/Objective-C bridge that uses BridgeSupport and libffi on Mac OS X to provide full automatic bindings to Objective-C and the more difficult areas of the platform such as functions, structs,

Re: Core Animation. issue with scaling

2010-08-23 Thread Eric Wing
I'm not sure how you are detecting touches now, but you should look at using CALayer's hitTest: method to determine if/what layer was clicked/touched. If the animation is still moving, you definitely need to be querying the presentationLayer and not the modelLayer. I am detecting touches in

Re: Core Animation. issue with scaling

2010-08-21 Thread Eric Wing
On 8/21/10, Ahsan Shafiq ahsan.shafiq...@gmail.com wrote: Yes, you are right but now I am unable to handle touches. As I said in my previous post, I also want to update the model. Simply scaling as you mentioned does scale down or scale up the sublayers as well but how to update the model. In

Re: Core Animation. issue with scaling

2010-08-20 Thread Eric Wing
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@bounds]; CGRect orgVal = CGRectMake(0, 0, firstWheelLayer.bounds.size.width, firstWheelLayer.bounds.size.height); CGRect newVal = CGRectMake(0, 0,

Re: Best way to draw large tiled images?

2010-08-20 Thread Eric Wing
On 8/18/10, Gideon King gid...@novamind.com wrote: I have a relatively large area on my NSView that I want to tile images into. I tried using CIAffineTile, but it gives me the following error: CoreImage: ROI is not tilable for even moderately large images (for small images, it works exactly as

Possible to hide the Drag Drop cursor?

2010-07-30 Thread Eric Wing
I am working on a drag drop feature where my application is the drag destination. I want to be able to receive various types of images via file handle, URL, data, etc. My custom view knows how to properly display and position the images for my specific app, better than the built-in default Mac

Re: OpenAL and OGG

2010-06-30 Thread Eric Wing
On 6/29/10, Development developm...@fornextsoft.com wrote: Can open al not read ogg files? I'm attempting to load a short ogg clip and I keep getting random errors. getOpenALAudioData: ExtAudioFileOpenURL FAILED, Error = 1954115647 2010-06-29 15:13:53.965 MixPad[12402:207] error attaching

Re: Exit( ) necessary? (oalTouch sample project)

2010-06-24 Thread Eric Wing
On 5/27/10, Philip Mobley p...@dreystone.com wrote: I have a question about the oalTouch example project. Specifically the sample code uses the exit( ) function after encountering an error such as in the sample code below. I looked up the OpenAL documentation for alGetError( ) and no where

Re: about 3D sound

2010-03-22 Thread Eric Wing
Nota bene: I found out you need to use _mono_ sounds or the 3D placement won't work. At least, that was the case for my iPhone game; I have never used OpenAL for a MacOS project. This is true of OpenAL in general (all platforms). The 1.1 spec specifies only mono sounds are spatialized. -Eric