ahh... that old trap again ;)...
thanks guys
On Fri, Feb 13, 2009 at 1:56 AM, John C. Randolph wrote:
>
> On Feb 12, 2009, at 10:45 PM, Chunk 1978 wrote:
>
>>if ([defaults objectForKey:@"OriginalBackground"] == pathy)
>
> ..
>
>> but they are the same! aren't they?!
>
> Nope. You're co
On Feb 12, 2009, at 10:45 PM, Chunk 1978 wrote:
if ([defaults objectForKey:@"OriginalBackground"] == pathy)
..
but they are the same! aren't they?!
Nope. You're comparing two addresses, not the contents of the objects
at those addresses.
Try:
if ([[defaults objectForKey:@"Or
Hi,
you compare objects with == but what you really want is
isEqualToString: since you want to compare the string contents.
Cheers,
Volker
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator commen
how can i equate an NSString to an ObjectForKey (which is also an
NSString)? kinda driving me crazy.
-=-=-=-
NSString *desktopPlist =
[@"~/Library/Preferences/com.apple.desktop.plist"
stringByExpandingTildeInPath];
NSString *originalDesktopBackgroundImage = NSDictionary
dictio
On 13/02/2009, at 1:58 AM, Ross Carter wrote:
On Feb 11, 2009, at 10:21 PM, Tom wrote:
However, I've found that when an NSTextView receives a keyDown
event that doesn't handle, it doesn't bother to send the event down
the responder chain and just calls NSBeep().
I expect that there isn'
The Simulator is not case sensitive when it comes to file names.
The file name in the project is "Level 1 top.png"
This code yields a nil provider in the iPhone, ergo no layer contents
imageFileName = [[[NSBundle mainBundle] resourcePath]
stringByAppendingPathComponent:@"level 1 top.png"];
CLANG worked quite well for us.
On Feb 12, 2009, at 10:45 PM, John C. Randolph wrote:
On Feb 10, 2009, at 11:32 PM, Valentin Dan wrote:
Hi,
What tools are there to analyze memory leaks in programs ? Is there
something that would tell the exact location of the leak (the object
that's not b
Adium has a great example of what you're looking to do
Sent from my iPhone
On Feb 12, 2009, at 10:57 PM, Erg Consultant
wrote:
Is it possible to change the icon of a running app after it has
already been started? My app has no .icns file not will it - but I
want to set it to some other
Is it possible to change the icon of a running app after it has already been
started? My app has no .icns file not will it - but I want to set it to some
other bundle's icon after my app has already launched. I've seen discussions in
the archives about how to change the Dock icon, but not the on
After looking at NSActionCell, I noticed the "setControlView" method
and this seems to be the missing link. NSActionCell sets it's control
view while NSCell does not. When I manually set the control view for
my custom cell to the table that contains it, viola! It works.
So, for any other NS
On Thu, Feb 12, 2009 at 5:48 PM, Corbin Dunn wrote:
> For what it's worth, filing bugs is *very* worthwhile. It lets Apple know
> what issues are important to developers and what problems they are
> encountering. Logging duplicates is also fine, as it gives us an idea of
> what problems are consta
On Feb 10, 2009, at 11:32 PM, Valentin Dan wrote:
Hi,
What tools are there to analyze memory leaks in programs ? Is there
something that would tell the exact location of the leak (the object
that's not being released) ?
Try /Developer/Applications/Instruments. It has a template
specific
On Feb 12, 2009, at 9:42 AM, Anthony Smith wrote:
What is the best way to set the max zoom size for NSWindow? I was
able to implement a solution by overriding zoom but that feels
rather invasive so I'm assuming there's probably a better way.
Check the docs for -windowWillResize:toSize:.
-
Just for kicks, I tried stepping back a level and making my cell a
subclass of NSActionCell and that works too. So it seems that whatever
magic Apple is performing happens inside NSActionCell.
On Feb 12, 2009, at 11:09 PM, Ken Tozier wrote:
Hmmm. Making my cell a subclass of NSTextFieldCel
Hmmm. Making my cell a subclass of NSTextFieldCell solved the problem.
I would dearly love to get a look at the the source for
NSTextFieldCell to see what it's doing, behind-the-scenes, that makes
this binding work. In general, it would be a boon to developers if
Apple would open up the sou
On Feb 12, 2009, at 21:23, David Blanton wrote:
I set up a CALayer
is shows in the iPhone Simulator
does not show in the iPhone
How can that be?
I doubt anyone can answer your question without seeing relevant code
snippets.
/brian
I set up a CALayer
is shows in the iPhone Simulator
does not show in the iPhone
How can that be?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact th
Folks,
I'm having an issue where CMYK images aren't being recognized by my
quartz compositions, so I need to convert them to RGB for display.
I've written a routine to do it, but its causing problems.
NSImageRep* theImageRep = [inputImage bestRepresentationForDevice:
[NSDictionary dictio
Thanks all to who replied for taking the time to sort me out. Your
replies have and will be helpful to my understanding of what goes on.
I'll let it sink into my head a bit more in the morning (It's 3:16am
here in Sydney).
Kind regards to all,
Jason
___
On Feb 12, 2009, at 1:18 PM, Ken Tozier wrote:
24 hours later, still completely stumped on this one. The sticking
point seems to be that Apple's NSTextFieldCell is doing something
that is not clearly defined in the Key-Value Observing/Key-Value
coding documentation to allow the following t
On Feb 11, 2009, at 8:37 PM, Michael Ash wrote:
On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus
wrote:
Please file a bug and request this functionality.
OK - that would not have occurred to me at all. That works in the
Mac world
? Awesome !! I've found plenty of Microsoft bugs, and I was
24 hours later, still completely stumped on this one. The sticking
point seems to be that Apple's NSTextFieldCell is doing something that
is not clearly defined in the Key-Value Observing/Key-Value coding
documentation to allow the following to work
[column bind: @"value" toObject: arrayCon
On 12 Feb 2009, at 04:37:35, Michael Ash wrote:
On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus
wrote:
Please file a bug and request this functionality.
OK - that would not have occurred to me at all. That works in the
Mac world
? Awesome !! I've found plenty of Microsoft bugs, and I was
So I'm a bit confused about how my NSOperation subclass should
implement the cancel method. The documentation says that "isCancelled"
is a KVO-compliant property. So I figured that calling [super cancel]
ought to take care of that. But it doesn't. Doesn't appear to do
anything, actually, wh
On Feb 12, 2009, at 8:28 AM, Felix Franz wrote:
You can create a new NSBitmapImageRep using the TIFFRepresentation
and use representationUsingType:properties:
to get the PNG-data:
NSData* TIFFData = [img TIFFRepresentation];
NSBitmapImageRep* bitmapImageRep = [NSBitmapImageRep
imag
Two things:
1) when I typed "NSArrayController" into the search field on the ADC
site, I got 209 possible places where you could begin your search for
info on how to use NSArrayController bindings with
IKImageBrowserView. If none of these is sufficient or you are a
novice to the binding
So besides hiding a layer I should also removeAnimationForKey:
Thanks!
On Feb 12, 2009, at 11:16 AM, David Duncan wrote:
On Feb 12, 2009, at 9:50 AM, David Blanton wrote:
Do I understand correctly that if a layer with explicit animations
is hidden the animation is still running?
Yes, ani
On Feb 12, 2009, at 9:50 AM, David Blanton wrote:
Do I understand correctly that if a layer with explicit animations
is hidden the animation is still running?
Yes, animations always run, regardless of the hidden state of a layer
(hidden is just another render attribute).
--
David Duncan
A
hi douglas,
i am not using an array controller... my current method is copying
images to the pasteboard (they are produced images from within the
app) and writing them to a folder when they are dropped into the image
browser. i'm assuming it shouldn't be too difficult to incorporate an
array cont
Do I understand correctly that if a layer with explicit animations is
hidden the animation is still running?
On Feb 12, 2009, at 10:45 AM, David Duncan wrote:
On Feb 12, 2009, at 9:37 AM, David Blanton wrote:
Side question ... in doing so will the animations begin when the
hidden property
On Feb 12, 2009, at 9:42 AM, Anthony Smith wrote:
What is the best way to set the max zoom size for NSWindow? I was
able to implement a solution by overriding zoom but that feels
rather invasive so I'm assuming there's probably a better way.
See the delegate methods of NSWindow.
j o a r
On Feb 12, 2009, at 9:37 AM, David Blanton wrote:
Side question ... in doing so will the animations begin when the
hidden property is set NO.
Animations run independently of each other, so hiding a layer does not
pause animations at all.
--
David Duncan
Apple DTS Animation and Printing
_
What is the best way to set the max zoom size for NSWindow? I was able
to implement a solution by overriding zoom but that feels rather
invasive so I'm assuming there's probably a better way.
Thanks
Anthony Smith
___
Cocoa-dev mailing list (Cocoa-
Having been chastised on this for 'horrific' design I thought I would
ask for some pointers before embarking on my next project. (Picture
of me with tail between legs.)
The app in question has four states. Associated with each state are
four CALayers some of which have explicit animations.
On Feb 10, 2009, at 12:23 , Scott Anguish wrote:
On 9-Feb-09, at 3:57 PM, Jerry Krinock wrote:
Is there any basic documentation like a "Collection View
Programming Guide", covering NSCollectionView and friends? I've not
been able to find any.
No, not currently. It's a known issue and is
On Thu, Feb 12, 2009 at 11:23 AM, I. Savant wrote:
> Are you *sure* that's the problem? It may not be. My first suspect
> is that I don't see anywhere that you're actually tearing down the
> right parts of the Core Data stack (the context and the persistent
> store).
... sorry, every where I
On 12.02.2009, at 17:14, Jean-Daniel Dupas wrote:
Unfortunately, I don't think you can save an NSImage as a PNG (it
only supports the TIFFRepresentation method).
You can create a new NSBitmapImageRep using the TIFFRepresentation and
use representationUsingType:properties:
to get the P
On Thu, Feb 12, 2009 at 10:55 AM, Samuel Strupp wrote:
> I simply want to delete the actual database (SQL Database) and load a new
> one.
Okay.
> First: all controllers which hold refs to NSManagedObjects will be deleted.
What do you mean "deleted"? Do you just mean you're disconnecting
th
Le 12 févr. 09 à 16:31, Smith, Steven (MCP) a écrit :
Hi folks,
I'm relatively new to Cocoa and need some direction on creating .png
files.
I need to create 365 png files (one for each day of the year)
to be used as tags by other folks (eg "JAN01.png"
"JAN2.png"..."DEC31.png").
I think
Thanks, Mike.
I assume that I need to also use
#define OPERATION_NOT_FINISHED 0
and
condLock = [[NSConditionLock alloc] initWithCondition: OPERATION_NOT_FINISHED];
Right?
I have a doubt here, however. What if the cancel message is sent even
before the worker thread had the possibility to star
On Feb 11, 2009, at 10:21 PM, Tom wrote:
However, I've found that when an NSTextView receives a keyDown event
that doesn't handle, it doesn't bother to send the event down the
responder chain and just calls NSBeep().
I expect that there isn't a keyDown event that NSTextView doesn't
handl
Hi
I simply want to delete the actual database (SQL Database) and load a
new one.
First: all controllers which hold refs to NSManagedObjects will be
deleted.
Then the i call [[NSGarbageCollector defaultCollector]
collectExhaustively];
Then i disconnect from the database.
This is the cod
I will "assume" that you are using an array controller to handle the
backing data for you IKImageBrowserView. If so, all you will need to
do is archive the array controller's arrangedObjects (or content plus
any filter predicate) and save it to a file - perhaps using NSArray's
handy-dandy
Hi folks,
I'm relatively new to Cocoa and need some direction on creating .png files.
I need to create 365 png files (one for each day of the year)
to be used as tags by other folks (eg "JAN01.png" "JAN2.png"..."DEC31.png").
I think I understand the draw/graphics concept, but I've been unable to
On Thu, Feb 12, 2009 at 9:52 AM, Samuel Strupp wrote:
> i have problem with the garbage collector. May App is a CoreData App (not
> document based). If i try to change the database and load a new one.
It's not clear what you mean here. Be *very* specific (and show code).
--
I.S.
_
On Thu, Feb 12, 2009 at 4:25 AM, Oleg Krupnov wrote:
> This seems a trivial question for a multi-threading app, but I haven't
> been successful in implementing this in Cocoa. I've got deadlocks and
> strange logs for seemingly no reason.
>
> Here's my problem: There is the main thread that starts
On Thu, Feb 12, 2009 at 6:17 AM, rethish wrote:
> Hi all,
>
> I need to append an newly recorded audio file with the end of an existing
> file.
>
> I use the function , AudioFileOpenURL (
[snip]
This is completely off-topic here. You'll probably get much better
results on the coreaudio-api li
topic says it all. i have installed an IKImageBrowser which allows me
to drop images and reorder them. it would be great to be able to
automatically save the dropped images as well as their order so that
the next time the app starts and the image browser loads up everything
is still there.
can s
Hi guys
i have problem with the garbage collector. May App is a CoreData App
(not document based). If i try to change the database and load a new
one. The grabage collector collects the old NSMangedObjects from the
old store. But this happens in the gabage collector thread. The
mainThread
Many thanks for your reply - that worked perfectly! The only thing that didn't
work between storing the bounds and retrieving them was something mentioned in
the other thread: the returned rect had to be modified using NSIntegralRect()
for it to be retrieved again via -selectionForRect:.
Howeve
Can someone please give me a sample of the valid way of using
NSCondition for this? I am still confused regarding how I can avoid
the subtle sync errors.
I've tried the following code
// main thread
// cancel operation
[m_operation cancel];
// wait until operation exits
[m_operationCompletionCond
On 12 Feb 09, at 01:25, Oleg Krupnov wrote:
This seems a trivial question for a multi-threading app, but I haven't
been successful in implementing this in Cocoa. I've got deadlocks and
strange logs for seemingly no reason.
// the operation object eventually checks the -isCancelled flag and
th
Hi all,
I need to append an newly recorded audio file with the end of an existing
file.
I use the function , AudioFileOpenURL ( CFURLRefinFileRef,
SInt8 inPermissions,
AudioFileTypeID inFileTypeHint,
AudioFileID *outAudioFile);
by se
Hi,
I'm resizing and moving the content of a UIScrollView in the -
scrollViewDidEndZooming:withView:atScale: method including the
removing/adding of views. This usually results in the content bouncing
more or less uncontrollable.
My question:
Is it possible to remove/abort *all* (really a
This seems a trivial question for a multi-threading app, but I haven't
been successful in implementing this in Cocoa. I've got deadlocks and
strange logs for seemingly no reason.
Here's my problem: There is the main thread that starts a worker
NSOperation to do some job (-[NSOperationQueue addOper
55 matches
Mail list logo