I'm trying to use an imported UTI in an application, but it isn't working. This
is the UTI declared in the info.plist file:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
On Mon, 5 Dec 2011 14:10:03 -0700, C.W. Betts said:
I'm trying to use an imported UTI in an application, but it isn't
working. This is the UTI declared in the info.plist file:
Those are common extensions, and the UTI system does not deal well with that
(see list archives).
Check
On Mon, Dec 5, 2011 at 1:10 PM, C.W. Betts computer...@hotmail.com wrote:
I'm trying to use an imported UTI in an application, but it isn't working.
This is the UTI declared in the info.plist file:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN
It is under UTImportedTypeDeclarations. I just copy-pasted the declaration
without the array.
On Dec 6, 2011, at 12:02 PM, Kyle Sluder wrote:
On Mon, Dec 5, 2011 at 1:10 PM, C.W. Betts computer...@hotmail.com wrote:
I'm trying to use an imported UTI in an application, but it isn't working.
My apologies for subjecting you all to such a dim question - but I'm coming
back to cocoa programming after a bit of a lay off and I can't remember what to
do!
I have a nib (xib - sorry) with my interface nicely laid out but I want it to
be updated by two classes. The class which is hooked up
(Mac OS X 10.6.8, Xcode 4.0.2, no GC)
I believe the following paragraph in the Using Autorelease Pools section of
the Memory Management Programming Guide is wrong, or misleading:
This behavior has implications for exceptional conditions. If an exception
occurs, and the thread suddenly
On Dec 6, 2011, at 12:47 PM, Larry Campbell wrote:
(Mac OS X 10.6.8, Xcode 4.0.2, no GC)
I believe the following paragraph in the Using Autorelease Pools section of
the Memory Management Programming Guide is wrong, or misleading:
This behavior has implications for exceptional conditions.
Hello
I am writing a WebView-based application, and I need to be able to
play an HTML5 video in a separate window, not embedded into the web
page.
Is it possible to make a desktop WebKit play HTML5 videos like an
iPhone Simulator does it, when the TV Out window is opened?
How does a mobile Safari
On Dec 6, 2011, at 2:47 PM, Larry Campbell wrote:
void allocAndRaise()
{
[[[NSString alloc] initWithString:@foo bar and zot] autorelease];
[NSException raise:@foo format:@bar];
}
//#define LEAK
void foo()
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
NS_DURING {
On 07/12/2011, at 7:35 AM, Geoffrey Holden wrote:
My apologies for subjecting you all to such a dim question - but I'm coming
back to cocoa programming after a bit of a lay off and I can't remember what
to do!
I have a nib (xib - sorry) with my interface nicely laid out but I want it to
On Dec 5, 2011, at 3:10 PM, C.W. Betts wrote:
I'm trying to use an imported UTI in an application, but it isn't working.
This is the UTI declared in the info.plist file:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN
In windows we have:
LONG volatile Mylock = 0;
InterlockedIncrement(Mylock);
InterlockedDecrement(Mylock);
What should these be replaced with for OSX as in :
#ifndef MAC
LONG volatile Mylock = 0;
#else
// Mac
#endif
void SetLock()
{
// EnterCriticalSection(m_cs);
#ifndef MAC
On Dec 6, 2011, at 4:02 PM, Greg Parker wrote:
On Dec 6, 2011, at 12:47 PM, Larry Campbell wrote:
(Mac OS X 10.6.8, Xcode 4.0.2, no GC)
I believe the following paragraph in the Using Autorelease Pools section
of the Memory Management Programming Guide is wrong, or misleading:
This
On Dec 6, 2011, at 4:59 PM, Ken Thomases wrote:
On Dec 6, 2011, at 2:47 PM, Larry Campbell wrote:
void allocAndRaise()
{
[[[NSString alloc] initWithString:@foo bar and zot] autorelease];
[NSException raise:@foo format:@bar];
}
//#define LEAK
void foo()
{
NSAutoreleasePool
On 12/6/11 3:28 PM, koko wrote:
In windows we have:
LONG volatile Mylock = 0;
InterlockedIncrement(Mylock);
InterlockedDecrement(Mylock);
What should these be replaced with for OSX as in :
Have you read the Threading Programming Guide?
I'm not a Windows developer, so I had to look up
On Dec 6, 2011, at 5:28 PM, koko wrote:
In windows we have:
LONG volatile Mylock = 0;
InterlockedIncrement(Mylock);
InterlockedDecrement(Mylock);
What should these be replaced with for OSX as in :
#ifndef MAC
LONG volatile Mylock = 0;
#else
// Mac
#endif
void SetLock()
{
I'm going to want to be doing almost the exact same thing.
Currently, I'm using pspdfkit to display a PDF and then have a movie pop up.
Just in the midst of making it be a tap instead of automatically play.
If you're up for trying out pspdfkit, I'll be glad to share my notes with you.
On
At 3:59 PM -0600 12/6/11, Ken Thomases wrote:
The workaround is necessary because the exception object raised in
allocAndRaise() has been autoreleased. It is no longer owned by
anything and is only still around because the pool containing the
pending release(s) has not been drained. When you
I did come across OSAtomicIncrementXX … thanks.
I cannot use NSLock as this is in a BSD Static lib and I am required to
implement as close to windows as possible.
So my code looks like below and is isomorphic to the Windows implementation.
=
LONG volatile Mylock = 0;
void SetLock()
On Tue, Dec 6, 2011 at 9:07 PM, koko k...@highrolls.net wrote:
I did come across OSAtomicIncrementXX … thanks.
I cannot use NSLock as this is in a BSD Static lib and I am required to
implement as close to windows as possible.
So my code looks like below and is isomorphic to the Windows
On Dec 6, 2011, at 8:01 PM, Steve Sisak wrote:
Given that operations have much shorter lifespan than threads, I'd worry
about the leaked NSAutoreleasePool objects in a long-running application.
When using Cocoa, exceptions should be, well, exceptional. They should not be
used for flow
On Dec 6, 2011, at 9:07 PM, koko wrote:
I cannot use NSLock as this is in a BSD Static lib and I am required to
implement as close to windows as possible.
There's no general prohibition against using Cocoa in a static library. I also
pointed you to pthread's mutex as an alternative.
Also,
It is a common misconception that the volatile keyword is necessary
or even helpful to code the implements locks and atomic operations.
What you really want is a memory barrier that prevents the compiler
from emitting your machine code in the incorrect order, as well as
preventing microprocessors
My apologies for posting to the Cocoa list.
It was just a silly mistake and will never happen again.
Thank for pointing out my error, Ken. We need good policemen to keep Apple
Developer lists pure!
And now I see that I have started a real problem as Don Quixote de la Mancha is
discussing
On Dec 6, 2011, at 10:05 PM, Don Quixote de la Mancha wrote:
Contrary to Ken Thomases' assertion, there are all kinds of reasons to
use atomic operations as locking primitives. One is that they cannot
result in process context switches; if you are certain that you will
release the lock quite
Hi
I am writing an application, that should behave (and look) like Safari
downloader, but download files from a flash drive to a folder. I was
guessing that an interface similar to Downloads would help users to
feel more comfortable. Just wondering if there's any third-party
downloads control
My problem is that applicationWillTerminate is not being invoked when my
launch agent is manually unloaded . My application is uielement with out dock
entry . I am able to do a signal handling , low level unix signal handling like
sigkill , sighup etc .
Thanks
Rajendran P
On 12/4/11
That is weird. Calling that a download is going to confuse users and promote
confusion.
Copying a file from a local mounted drive is copying, maybe installing.
That said,
Uli Kulsterer has a control similar to The pre-lion Safari downloads window.
Safari lion just puts it in an annoying
28 matches
Mail list logo