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.)
___
Cocoa-de
>
> 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, no
> 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 sourc
On 5/20/15, Jens Alfke wrote:
>
>> On May 20, 2015, at 4:57 PM, Eric Wing 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 proper
On 5/20/15, Jens Alfke wrote:
>
>> On May 20, 2015, at 4:08 PM, Eric Wing 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 befo
> 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
On 3/28/14, Rick Mann 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 the integer type fr
On 1/30/14, Jens Alfke wrote:
>
> On Jan 30, 2014, at 4:32 AM, Jean-Daniel Dupas
> 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 allocated objects are broken.
>
On 1/29/14, Uli Kusterer wrote:
> On 30 Jan 2014, at 00:16, Rui Pacheco 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 Objective-C++, consumes
>> less memory than the Chocol
On 12/28/13, Jerry Krinock wrote:
>
> On 2013 Dec 28, at 15:14, Eric Wing 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 repla
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.
On 12/26/13, Jens Alfke wrote:
>
> On Dec 25, 2013, at 7:26 AM, Eric Wing 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
On 12/25/13, Stephen J. Butler 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 (
> https://www.google.com/s
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 t
On 12/17/13, Uli Kusterer wrote:
> On 17 Dec 2013, at 00:15, Dan Treiman 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
>> callbacks in a background thread. Th
On 10/30/13, Charles Srstka 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 them above your Sprit
> 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 z
On 6/11/13, Nick Zitzmann 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 uses four pixel
On 5/30/13, Jens Alfke wrote:
>
> On May 29, 2013, at 11:35 PM, Eric Wing 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
On 5/29/13, Jens Alfke wrote:
>
> On May 29, 2013, at 8:29 PM, Eric Wing 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 bot
On 5/29/13, Charles Srstka wrote:
> On May 29, 2013, at 10:29 PM, Eric Wing 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 be possible to alt
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 foun
On 11/6/12, John Delacour 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
>> languages.
>
On 9/18/12, Nick wrote:
> Hi
> I am developing a simple video player that has to be able to allow the
> user to zoom in/out the played video, to "pan" the video's 'viewport'
> with the mouse when the video has been zoomed in and doesn't fit
> completely on the view, and allow to flip the played mo
On 9/15/12, Matthew Weinstein 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 and
> capturing
On 9/7/12, Uli Kusterer wrote:
> On 06.09.2012, at 09:48, Eric Wing 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 the fac
On 9/6/12, Eric Wing 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 al
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.
On 9/5/12, John MacMullin 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. This recently sta
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 tempora
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 add
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 lis
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 thi
On 8/10/12, Jayson Adams wrote:
>
> On Aug 10, 2012, at 5:57 PM, Charles Srstka wrote:
>
>> On Aug 10, 2012, at 7:44 PM, Jayson Adams wrote:
>>
>>> Except Apple itself says it might not make sense to do so. From the
>>> 64-bit Transition Guide:
>>>
>>> https://developer.apple.com/library/mac/#do
On 8/2/12, koko 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 to pull in.
On 7/27/12, Jens Alfke 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 cause the pixmap t
On 6/28/12, Kyle Sluder wrote:
> On Jun 28, 2012, at 1:58 PM, Eric Wing 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 .
On 6/28/12, Gary L. Wade 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 just as you do an analyz
On 6/9/12, Todd Heberlein 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 GUI, NSApplicati
On 6/9/12, Todd Heberlein 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 Application Tutorial",
On 3/22/12, Chris Hanson 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 -s
> 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 o
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 /Develop
On 3/13/12, 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
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 expectin
On 3/10/12, Quincey Morris 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 _m
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.
-E
On 3/6/12, Prime Coderama 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?
>
> Thanks in advanc
On 2/24/12, Sean McBride 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.
>
> Indeed, and it's ext
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.
___
C
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
> p
On 12/15/11, Tim Schröder 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 don't rely on scr
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 is
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 laun
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 a
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 r
> 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 cha
On 9/21/11, Jens Alfke 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 NSText
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
http://playcontro
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 wrote:
> Reminder: Cocoaheads Silicon Va
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
CAOp
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 Op
On 8/16/11, Abdul Sowayan 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 NSUserDefaults is the usual me
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 au
>> 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 gre
On 6/12/11, Abhinav Tyagi 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 ScriptEditor is
>
> tell
On 4/8/11, Vyacheslav Karamov 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
http://playcontrol.net
On 4/7/11, Florian Pilz 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
> following solutions:
>
>
On 4/2/11, Jason Harris 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 shows how t
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
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 comment
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 API
On 1/24/11, Mathieu Suen 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
> #include
> #include
>
> void
> onLoad (Class this, char* i
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, con
>> 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 detectin
On 8/21/10, Ahsan Shafiq 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 Scaling both the posit
On 8/20/10, Ignacio Enriquez wrote:
> Hi,
>
> I have a subclass of CALayer (below self) and it has a sublayer (textLayer).
> I want self to be shrank and enlarges, so I created animations like
> the following:
> self is animated as expected but sublayer textLayer is not resized, it
> just chang
On 8/18/10, Gideon King 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 I want it to)
> CABasicAnimation *animation =
> [CABasicAnimation animationWithKeyPath:@"bounds"];
> CGRect orgVal = CGRectMake(0, 0,
> firstWheelLayer.bounds.size.width, firstWheelLayer.bounds.size.height);
> CGRect newVal = CGRectMake(0, 0,
> firstWheelLayer.bou
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 b
On 6/29/10, Development 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 audio to buffer:
> a003
>
On 5/27/10, Philip Mobley 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 does the
> Ope
> 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.
-Er
83 matches
Mail list logo