Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 20:43, Roland King wrote: Here are the release notes on this by the way. I note they only talk about running in non-GC mode. However in both cases mentioned an object has unregistered as an observer of an observed object during the dealloc of that observed object and the

Re: How to extract the "Artist" information of an song file?

2009-08-29 Thread James
>If it's an AAC file, you can use the QTMetaData* functions. If you're >looking to get it out of an mp3, you're unfortunately stuck with >either parsing it yourself (see the id3 specs) or using id3lib. Thank you for your help. In my application, there are three kinds of audio files--AAC, mp3

Re: Core Data Predicate Builder - comparing dates

2009-08-29 Thread Steve Cronin
Ben; Thanks for taking the time to respond. I believe that I was blinded by a build issue in my allegation that the Predicate Builder mechanism was not giving correct results. This seems to be working fine now. I'm glad you have expressed the fragility issue on equivalence - I'll remember t

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Roland King
On 30-Aug-2009, at 11:24, Graham Cox wrote: I believe the issue lies in the fact that an object that has KVO observers registered on it is not the object you think it is. It's in fact a sort of proxy for the "real" object that has been swizzled (you can see this in the debugger as

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Roland King
On Aug 30, 2009, at 1:28 AM, Quincey Morris wrote: The second is that one of the behaviors he doesn't control -- unregistration of observers -- is not permitted during the 'dealloc' of the observed object, and must be done before that. That's what the log message is trying to say. The bug

Re: Applying color to template images

2009-08-29 Thread Brandon Walkin
I have a category on NSImage that should do what you need: - (NSImage *)tintedImageWithColor:(NSColor *)tint { NSSize size = [self size]; NSRect imageBounds = NSMakeRect(0, 0, size.width, size.height); NSImage *copiedImage = [self copy]; [copiedImage loc

Re: core-data app design question

2009-08-29 Thread Kyle Sluder
On Aug 29, 2009, at 5:53 PM, Ben Trumbull wrote: Encoding your data this way is pushing the boundaries of violating MVC patterns by archiving UI information (NSTextView drawing information) into your model (database). That obviously doesn't work if the platform doesn't support NSTextView.

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Graham Cox
On 30/08/2009, at 12:35 PM, Roland King wrote: Now this I don't understand. If you enter your dealloc method with observers registered on yourself and do have a *safe* mechanism of ensuring they are completely removed before ending the dealloc routine (or calling [ super dealloc ] ) I don'

Re: multiple nsrunalert panels

2009-08-29 Thread Rick C.
thanks I.S. sorry for my delay. actually i figured it out and sorry for lack of info earlier. i had it in a delegate method that could be called more than once. maybe it was lack of sleep? :-) thanks again, rick From: I. Savant To: Rick C. Cc: cocoa de

Re: Correct way to have nil undo manager in Core Data document?

2009-08-29 Thread Jerry Krinock
On 2009 Aug 29, at 13:41, Quincey Morris wrote: AFAIK, the problem is that NSPersistentDocument overrides *some* of NSDocument's undo-related methods, but not all, and calling the un- overridden ones really messes things up -- you can end up with 2 undo managers, one in a NSDocument private

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Roland King
On Aug 30, 2009, at 1:28 AM, Quincey Morris wrote: On Aug 29, 2009, at 06:00, Roland King wrote: If I understand what's been said in this thread, Andreas *is* doing something wrong. He's in good company, though, because the retain/ release mechanism has traditionally allowed many Cocoa deve

enabling/ disabling a uitextfield

2009-08-29 Thread Mark Bateman
Hi, anyone know how I can enable ./ disable a UItext field outside of IB. I can do this as part of the XIB but I want to disable interaction on a particular condition. Also is there a keyboard property i can set to enable the caps lock key (not the auto capitalization) ___

Re: SOLVED -- llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2

2009-08-29 Thread Jay Reynolds Freeman
For the record, I seem to have solved my original problem. It turns out that Xcode comes with an llvm-g++ as well as llvm-gcc. Merely changing the compiler used from /Developer/usr/bin/llvm-gcc-4.2 to /Developer/usr/bin/llvm-g++-4.2 makes everything happy. I did not find any docume

TAB bar and nav bar together

2009-08-29 Thread Mark Bateman
Hi, I have an app that uses a TAB bar controller to launch "n" view controllers through my main window.XIB. I wanted each of them to have a nav bar with custom buttons and so I added a nav bar controller to the XIB for each one. so the hierarchy in IB is Tab bar controller -> tab bar -

Re: Standard Alert Note/Warning/Stop icon NSImage Names?

2009-08-29 Thread Nick Zitzmann
On Aug 29, 2009, at 6:24 PM, Seth Willits wrote: Are the standard alert icons (note, warning, and stop) available through standard image names (like NSApplicationIcon)? They don't seem to be. There are, and they're available through standard image names. But you have to use IconRef, not

Drawing a graph & testing ranges

2009-08-29 Thread Mark Bateman
Hi, I have a completed app that calculates graph points x and y coordinates. I want to present these on a graph that has an acceptable "envelope" of coordinates. I'm guessing that i need to learn how to use quartz to draw lines pixel by pixel to represent this on a UIview. is there any

re: CoreData: Using to-may relationships in fetch request predicates

2009-08-29 Thread Ben Trumbull
in the typical CoreData example, if I want to fetch all departments whose employees have a salary higher than a specified value, I will perform a fetch on the Department entity using a predicate with the following format: "ANY employees.salary < %@" This is working fine. Now I want to fetch all

re: Core Data observer exception in 10.6

2009-08-29 Thread Ben Trumbull
In a Core Data-based app that works fine in 10.5.x, I now get an exception as follows in 10.6 when opening a document. It targets 10.5, and the same exception occurs when rebuilding on 10.6 (still targeting 10.5, but also when targeting 10.6). I don't register or unregister any observers myself,

Re: learning the NSView structure of an app?

2009-08-29 Thread Rob Keniger
On 29/08/2009, at 2:08 AM, sag lists wrote: As a relatively new cocoa developer, one thing I struggle with is determining on visual inspection how an app is constructed in terms cocoa views. Some things are obvious like splitter views, the toolbar, etc. But some are not. Does anyone know

re: core-data app design question

2009-08-29 Thread Ben Trumbull
I have a question, or rather, I'm looking for advice, on the design of an application. Essentially I'm wanting to write a labbook-type application. My plan was to use core-data for the model. In the model will be an Entry entity. Each entry will have a one-to-one relationship to a Content entity.

Re: Standard Alert Note/Warning/Stop icon NSImage Names?

2009-08-29 Thread Kyle Sluder
On Aug 29, 2009, at 5:24 PM, Seth Willits wrote: Are the standard alert icons (note, warning, and stop) available through standard image names (like NSApplicationIcon)? They don't seem to be. They are on 10.6. See the AppKit release notes and NSImage.h. Don't miss the addition of the sta

re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template

2009-08-29 Thread Ben Trumbull
I just created a fetch request template in my MOM that looked like: SUBQUERY(platformInfos, $each, $each.platformName == $PLATFORM_NAME)@count == 0 I then looked up the template in the code and attempted to use it in the usual manner with: fetchRequestFromTemplateWithName:substitutionVaria

re: Core Data Predicate Builder - comparing dates

2009-08-29 Thread Ben Trumbull
I have a Core Data entity that has a dateCreated and a dateModified - both NSDates in the object files. I'd like to construct a predicate that will retrieve all records where a record's dateModified is greater than that record's dateCreated. Its deceptively easy to setup something that looks like

re: Correct way to have nil undo manager in Core Data document?

2009-08-29 Thread Ben Trumbull
Well, I've got a background worker process which opens an NSPersistenDocument. Since it has no "undo" capability, I want to set it to nil as recommended. (I have other reasons for not wanting an undo manager scurrying around.) But the document doesn't like having nil undo manager. When I ask f

Standard Alert Note/Warning/Stop icon NSImage Names?

2009-08-29 Thread Seth Willits
Are the standard alert icons (note, warning, and stop) available through standard image names (like NSApplicationIcon)? They don't seem to be. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: virtual ivars

2009-08-29 Thread Clark Cox
That's fine, as you've written it. There is nothing special about the methods used to implement properties; they're just methods. Wherever you choose to store the actual data that backs the property is immaterial. On Sat, Aug 29, 2009 at 3:39 PM, Todd Heberlein wrote: >> I see from another post I

Re: Getting managedObject Context

2009-08-29 Thread Gideon King
If you use NSPersistentDocument instead of NSDocument, it has all that already built in for you. Gideon On 30/08/2009, at 8:59 AM, Clayton Leitch wrote: I have spent the last month try to solve a simple problem. I need to get the managedObjectContext in a NSDocument based application.

Re: Getting managedObject Context

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 15:59, Clayton Leitch wrote: I have spent the last month try to solve a simple problem. I need to get the managedObjectContext in a NSDocument based application. I know how to get this in a non-document based application -(NSManagedObjectContect *)managedObjectContext {

Getting managedObject Context

2009-08-29 Thread Clayton Leitch
I have spent the last month try to solve a simple problem. I need to get the managedObjectContext in a NSDocument based application. I know how to get this in a non-document based application -(NSManagedObjectContect *)managedObjectContext { if (!managedObjectContext) { mana

Re: virtual ivars

2009-08-29 Thread Todd Heberlein
I see from another post I was conflating "ivars" with "properties". With regards to the setters, I have some C++ libraries, and I was thinking about having "property" wrappers in an Objective C object doing setting and getting into values in the C++ object. So here is a slightly more detail

Re: Core Data observer exception in 10.6

2009-08-29 Thread David Sinclair
On Aug 29, 2009, at 14:35:23, Kyle Sluder wrote: On Aug 29, 2009, at 1:48 PM, David Sinclair wrote: In a Core Data-based app that works fine in 10.5.x, I now get an exception as follows in 10.6 when opening a document. It targets 10.5, and the same exception occurs when rebuilding on 10.

Re: virtual ivars

2009-08-29 Thread Todd Heberlein
If you can't set a value, don't provide a setter. I see from another post I was conflating "ivars" with "properties". With regards to the setters, I have some C++ libraries, and I was thinking about having "property" wrappers in an Objective C object doing setting and getting into values i

Re: Drawing Text in an NSImage

2009-08-29 Thread Kyle Sluder
On Aug 29, 2009, at 2:21 PM, Seth Willits wrote: String drawing always happens relative to the view's orientation, not the image's. If the view is flipped and you draw into an image, then draw that image, the string will be upside down. That's the reason I'm assuming they say not to do it.

Re: virtual ivars

2009-08-29 Thread Ken Thomases
On Aug 29, 2009, at 3:49 PM, Todd Heberlein wrote: I've been playing with KVC and KVO with my own setters and getters (along with Controllers) to create virtual ivars. That is, there never is any storage created for the variable and its value is calculated on the fly when the getter is call

Re: virtual ivars

2009-08-29 Thread Kyle Sluder
On Aug 29, 2009, at 1:49 PM, Todd Heberlein wrote: I've been playing with KVC and KVO with my own setters and getters (along with Controllers) to create virtual ivars. That is, there never is any storage created for the variable and its value is calculated on the fly when the getter is c

Re: Core Data observer exception in 10.6

2009-08-29 Thread Kyle Sluder
--Kyle Sluder On Aug 29, 2009, at 1:48 PM, David Sinclair wrote: In a Core Data-based app that works fine in 10.5.x, I now get an exception as follows in 10.6 when opening a document. It targets 10.5, and the same exception occurs when rebuilding on 10.6 (still targeting 10.5, but also

Re: Normalize an NSAttributedString

2009-08-29 Thread Ken Thomases
On Aug 29, 2009, at 3:48 PM, Ross Carter wrote: On Aug 29, 2009, at 1:22 PM, Ken Thomases wrote: On Aug 29, 2009, at 11:46 AM, Ross Carter wrote: Suppose an NSAttributedString comprises the string o + umlaut in decomposed form, plus one attribute. Its length is 2, and the range of an attr

Re: Drawing Text in an NSImage

2009-08-29 Thread Seth Willits
On Aug 27, 2009, at 9:37 PM, Henry McGilton (Boulevardier) wrote: drawAtPoint/drawInRect in NSString/NSAttributedString says... "You should only invoke this method when an NSView object has focus." "Don’t invoke this method while no NSView is focused." When an image is focused, and you draw te

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Ken Thomases
On Aug 29, 2009, at 3:24 PM, Quincey Morris wrote: It's actually not clear (to me) whether the two warnings are controlled by the same compiler options. AFAIK -Wno-format (which used to be the default in the build setting) would turn off the type mismatch warning, but I don't know whether i

Copying records from to-many relationship in Core Data

2009-08-29 Thread Sean Kline
Folks, I have a Core Data application with two entities (relevant to this question) with a to-many relationship between them. When I create a new record in Entity 1, I would like to copy the to-many records from Entity 2 from that last record created into the new record. I tried to execute a fetc

virtual ivars

2009-08-29 Thread Todd Heberlein
I've been playing with KVC and KVO with my own setters and getters (along with Controllers) to create virtual ivars. That is, there never is any storage created for the variable and its value is calculated on the fly when the getter is called. This seems to have some cool potential, but it

Core Data observer exception in 10.6

2009-08-29 Thread David Sinclair
Hi, In a Core Data-based app that works fine in 10.5.x, I now get an exception as follows in 10.6 when opening a document. It targets 10.5, and the same exception occurs when rebuilding on 10.6 (still targeting 10.5, but also when targeting 10.6). I don't register or unregister any obser

Re: Normalize an NSAttributedString

2009-08-29 Thread Ross Carter
On Aug 29, 2009, at 1:22 PM, Ken Thomases wrote: On Aug 29, 2009, at 11:46 AM, Ross Carter wrote: Suppose an NSAttributedString comprises the string o + umlaut in decomposed form, plus one attribute. Its length is 2, and the range of an attribute is {0, 2}. The string and its attribute are

Re: Correct way to have nil undo manager in Core Data document?

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 13:01, Jerry Krinock wrote: Apparently when -[NSDocument undoManager] sees that its undo manager is nil (because I set it to nil), it says to itself, "Golly, we need an undo manager here. So it creates one, sets it in the subclass - [NSPersistentDocument setUndoManager:]

Re: learning the NSView structure of an app?

2009-08-29 Thread Sean Kline
Hi, This may not be what you are looking for, but in Interface Builder, there are a couple of ways to look at what views you have: - Look at the various View Modes and drill into views, to see view hierarchies - Within a particular view, press "Shift" "Right-mouse" and you will see a view hierarch

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 12:31, Ken Thomases wrote: No such thing is assumed. If you provide a string literal, the compiler actual checks it and the arguments to make sure they're consistent with each other. I expressed myself badly. Because that check produces a different warning, I was thin

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 12:26, Andreas Grosam wrote: Just to be clear, the code is running on the iPhone, hence there is no GC. Secondly, there is no issue with release or retain. If I invoke release from within a dealloc in order to release a certain object, I have to do it exactly the same wa

Correct way to have nil undo manager in Core Data document?

2009-08-29 Thread Jerry Krinock
From the Core Data Programming Guide: "If you do not intend to use Core Data's undo functionality, you can reduce your application's resource requirements by setting the context’s undo manager to nil. This may be especially beneficial for background worker threads..." Well, I've got a bac

Re: Testing localizations in 10.6

2009-08-29 Thread Gideon King
This is also a problem if the users can't set it on an app by app basis easily - I know we have a number of users who have their operating system set to one language, but choose to have several specific applications running in English. Gideon On 30/08/2009, at 5:46 AM, Jean-Daniel Dupas w

Re: Testing localizations in 10.6

2009-08-29 Thread Jean-Daniel Dupas
Le 29 août 2009 à 21:29, Dylan McNamee a écrit : Way back before Snow Leopard, I was able to test a localization by right-clicking on my application, and "un-checking" all of the languages except for the one I wanted to test. Today, however, I see that portion of the "Get Info" window is

Re: Testing localizations in 10.6

2009-08-29 Thread Ken Thomases
On Aug 29, 2009, at 2:29 PM, Dylan McNamee wrote: Way back before Snow Leopard, I was able to test a localization by right-clicking on my application, and "un-checking" all of the languages except for the one I wanted to test. Today, however, I see that portion of the "Get Info" window is

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Ken Thomases
On Aug 29, 2009, at 2:19 PM, Quincey Morris wrote: On Aug 29, 2009, at 11:54, Peter Duniho wrote: Or is it implied that the compiler is doing compile-time verification of the format string when a literal is provided? Sort of, but not exactly. Actually, yes exactly. So if you provide a st

Testing localizations in 10.6

2009-08-29 Thread Dylan McNamee
Way back before Snow Leopard, I was able to test a localization by right-clicking on my application, and "un-checking" all of the languages except for the one I wanted to test. Today, however, I see that portion of the "Get Info" window is missing. What do folks suggest for testing localiz

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Andreas Grosam
On Aug 29, 2009, at 7:28 PM, Quincey Morris wrote: On Aug 29, 2009, at 06:00, Roland King wrote: Well first off you're not really, really doing anything wrong, that message is in the wrong place (in my opinion), it should only come up when the NSObject dealloc is called if things haven't b

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Ken Thomases
On Aug 29, 2009, at 1:54 PM, Peter Duniho wrote: Am I reading the right documentation? On this page: http://developer.apple.com/mac/library/releasenotes/Cocoa/Foundation.html I see this text: Foundation APIs which take string format arguments (APIs such as initWithFormat:, NSLog(), etc)

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 11:54, Peter Duniho wrote: Or is it implied that the compiler is doing compile-time verification of the format string when a literal is provided? Sort of, but not exactly. The first parameter to NSLog is *really* a format string, not just a string. If an arbitrary string

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Jay Reynolds Freeman
As a possibly useful aid to understanding, I have seen what is very likely a related problem while compiling with llvm-gcc-4.2 from the command line; the problem there had to do with strict error checking of places where the current formal declaration of a function such as "fprintf" expects

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Peter Duniho
On Aug 29, 2009, at 10:36 AM, Quincey Morris wrote: On Aug 29, 2009, at 05:36, Jonathan del Strother wrote: After upgrading to snow leopard & Xcode 3.2, I've starting getting this warning on NSLogs - NSLog(@"Hello"); // 'Format not a string literal and no format arguments' NSLog(@"Hello

Re: [OT] Re: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2

2009-08-29 Thread Jay Reynolds Freeman
On Aug 29, 2009, at 4:37 AM, Alastair Houghton wrote: > Yes. Ask your question on xcode-users, *not* cocoa-dev. It has nothing to do with Cocoa and so it's off-topic for this list. Sincere apologies to Alastair and possibly to others, but I posted to cocoa-dev because this issue has to do

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Jonathan del Strother
No - I really am seeing NSLog(@"Hello") producing a warning. I did find the culprit, though - OTHER_CFLAGS=-fno-constant-cfstrings. The project is for a loadable bundle - I guess I need to dig around to figure out if I can safely get rid of it... On Sat, Aug 29, 2009 at 6:36 PM, Quincey Morris w

Applying color to template images

2009-08-29 Thread Mitchell Livingston
Hello, I want to use NSImage's built-in template images, but want to replace the black color with different colors, such as gray or orange. I feel like I'm missing something obvious, but I can't seem to figure this out. Could someone point me in the right direction. Thanks, Mitch

Re: bin2c GUI tool? [OT]

2009-08-29 Thread Greg Guerin
Erg Consultant wrote: Does anyone make a GUI version of bin2c for OS X? This isn't a Cocoa question, so is off-topic for this list. Maybe you can merge bin2c's source into HexFiend as a new Export or Save As option. Or bundle bin2c's command-line executable into a Platypus app. Find He

Re: NSTextView moves when being resized ???

2009-08-29 Thread Anders Lassen
Hi Reinhard, Thanks for helping. I have just tried to flip the coordinate system of the custom view by overriding the isFlipped method, and it did solve the problem. Kind regards, Anders Lassen On Aug 29, 2009, at 6:13 PM, Reinhard Segeler wrote: Hallo Anders, did you receive my messag

Re: "Format not a string literal and no format arguments"

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 05:36, Jonathan del Strother wrote: After upgrading to snow leopard & Xcode 3.2, I've starting getting this warning on NSLogs - NSLog(@"Hello"); // 'Format not a string literal and no format arguments' NSLog(@"Hello %@", name); // compiles fine I must have some wei

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Quincey Morris
On Aug 29, 2009, at 06:00, Roland King wrote: Well first off you're not really, really doing anything wrong, that message is in the wrong place (in my opinion), it should only come up when the NSObject dealloc is called if things haven't been unobserved. There's a comment in this thread abo

Re: Normalize an NSAttributedString

2009-08-29 Thread Ken Thomases
On Aug 29, 2009, at 11:46 AM, Ross Carter wrote: Suppose an NSAttributedString comprises the string o + umlaut in decomposed form, plus one attribute. Its length is 2, and the range of an attribute is {0, 2}. The string and its attribute are archived separately as xml data like this: ö NSF

Re: libcrypto on Snow Leopard

2009-08-29 Thread Charles Srstka
On Aug 28, 2009, at 7:07 PM, Steven Degutis wrote: The solution to this is pretty simple, don't link to libcrypto. Instead, just #import in your file and use the CC_ prefixed functions in your app, such as CC_MD5. Another solution is to use CDSA, which Apple provides in the Security fram

Re: Auto complete accepts on space, any way to change?

2009-08-29 Thread Ross Carter
On Aug 28, 2009, at 12:02 PM, Ben Lachman wrote: My app, SousChef, uses the AppKit autocomplete functionality in a bunch of places. Currently if a user types "So" they are presented with a list of completions and the first actual completion ("Soup") is used inline and selected so that thi

Re: Normalize an NSAttributedString

2009-08-29 Thread Ross Carter
On Aug 26, 2009, at 1:21 PM, Ken Thomases wrote: On Aug 26, 2009, at 10:43 AM, Michael Ash wrote: On Wed, Aug 26, 2009 at 5:42 AM, Ken Thomases wrote: On Aug 25, 2009, at 7:21 PM, Ross Carter wrote: I haven't tried it, but this should work: NSAttributedString* original = whatever;

Re: NSTextView moves when being resized ???

2009-08-29 Thread Reinhard Segeler
Hallo Anders, did you receive my message below, because that solves the problem. I have checked, that in a testproject. The explanation is: If you set a new max width/height its calculated and drawn from the origin, which is the lower left edge of your view. You find more details in the NS

Re: Testing 32/64 bit and/or PPC

2009-08-29 Thread Timothy Reaves
On Aug 28, 2009, at 11:13 PM, Chris Idou wrote: If you have a universal binary, 32/64 and/or PPC, is there a way to force it to run one way or the other for testing purposes? There is, but you probably shouldn't. A Universal binary needs to have the tests run for all platforms,

Re: multiple nsrunalert panels

2009-08-29 Thread I. Savant
On Aug 29, 2009, at 11:40 AM, Rick C. wrote: i'm using nsrunalertpanel successfully except if i will make another app active and then make my own app active again it will display a duplicate panel even though i have never yet acknowledged the original one. actually if i keep switching back

multiple nsrunalert panels

2009-08-29 Thread Rick C.
hello, i'm using nsrunalertpanel successfully except if i will make another app active and then make my own app active again it will display a duplicate panel even though i have never yet acknowledged the original one. actually if i keep switching back and forth between active apps it will con

Re: NSTextView moves when being resized ???

2009-08-29 Thread Reinhard Segeler
The coordinate-system for a view starts with the lower left corner, not at the upper left. There is command, that sets the coordinate system to the upper left corner, but I can't find it right now. But I guess, that the first info is what you need to know. Reinhard Am 29.08.2009 um 12:38 s

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Roland King
Well first off you're not really, really doing anything wrong, that message is in the wrong place (in my opinion), it should only come up when the NSObject dealloc is called if things haven't been unobserved. There's a comment in this thread about this having been fixed, hopefully it is.

"Format not a string literal and no format arguments"

2009-08-29 Thread Jonathan del Strother
After upgrading to snow leopard & Xcode 3.2, I've starting getting this warning on NSLogs - NSLog(@"Hello"); // 'Format not a string literal and no format arguments' NSLog(@"Hello %@", name); // compiles fine I must have some weird project setting somewhere since a new test project didn't t

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Jean-Daniel Dupas
Le 29 août 2009 à 14:08, Andreas Grosam a écrit : On Aug 29, 2009, at 2:29 AM, Graham Cox wrote: Thank you Graham for your reply. Hi Andreas, There is a strong code smell here. How does your observee know who its observers are? Actually, it does not. My example code is an oversimplifica

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Andreas Grosam
On Aug 29, 2009, at 2:29 AM, Graham Cox wrote: Thank you Graham for your reply. Hi Andreas, There is a strong code smell here. How does your observee know who its observers are? Actually, it does not. My example code is an oversimplification to show the actual issue. Often, things are mu

[OT] Re: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2

2009-08-29 Thread Alastair Houghton
On 29 Aug 2009, at 12:21, Jay Reynolds Freeman wrote: Can anyone provide advice? Yes. Ask your question on xcode-users, *not* cocoa-dev. It has nothing to do with Cocoa and so it's off-topic for this list. Kind regards, Alastair. -- http://alastairs-place.net ___

[OT] Re: strncat on Leopard vs. Snow Leopard

2009-08-29 Thread Alastair Houghton
On 29 Aug 2009, at 06:43, David Riggle wrote: When I compile my app on Snow Leopard and run it on Leopard, strncat erroneously aborts with "detected buffer overflow". How is this a Cocoa question? (Hint: it isn't, so you've sent your question to the wrong mailing list.) I think there was

Re: Get error message about registered observers when Object receives dealloc message

2009-08-29 Thread Andreas Grosam
On Aug 28, 2009, at 5:32 PM, Roland King wrote: Thank you Roland for your reply. I think this is one of those unfortunate messages which comes out before the dealloc method even runs, just entering the dealloc method with registered observers logs it. It's possible it would be better if

Re: How to extract the "Artist" information of an song file?

2009-08-29 Thread Jonathan del Strother
2009/8/29 James : > Hi all, > How to extract the "Artist" information from an song file? > Is there any method about it ? Any clues is helpful for me. > Thank you in advance! If it's an AAC file, you can use the QTMetaData* functions. If you're looking to get it out of an mp3, you're unfortunatel

llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2

2009-08-29 Thread Jay Reynolds Freeman
I have some C++ files used in a Snow Leopard / Xcode (3.2) project, that compiles and links in Xcode with no trouble, with the compiler set to llvm-gcc-4.2. However, when I try to compile and link something that uses those same files from the command line, directly invoking llvm-gcc-4.2 a

How to extract the "Artist" information of an song file?

2009-08-29 Thread James
Hi all, How to extract the "Artist" information from an song file? Is there any method about it ? Any clues is helpful for me. Thank you in advance! James ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

NSTextView moves when being resized ???

2009-08-29 Thread Anders Lassen
Hi, I am working on a custom view that consists of a column of several NSTextViews. In between, there are graphics and some other stuff that require special editing. Therefore I cannot use a single NSTextView. The NSTextView must adopt its height to the content. This works fine using the

Re: libcrypto on Snow Leopard

2009-08-29 Thread Jean-Daniel Dupas
Le 29 août 2009 à 11:27, Kyle Sluder a écrit : On Aug 29, 2009, at 1:59 AM, Thomas Clement wrote: Another solution is to copy the libcrypto.0.9.7.dylib from the 10.5 SDK into your project directory and link against that. Aren't the SDK dylibs just stubs for linking purposes? They are. B

Re: libcrypto on Snow Leopard

2009-08-29 Thread Thomas Clement
On Aug 29, 2009, at 11:13 AM, Carl Harris wrote: Nick Zitzmann wrote: So if you need to use libcrypto 0.9.7, you must use the Leopard or Tiger SDKs. You can't use the Snow Leopard SDK and libcrypto unless you want to make your software require Snow Leopard. Isn't it generally the case that a

Re: libcrypto on Snow Leopard

2009-08-29 Thread Kyle Sluder
On Aug 29, 2009, at 1:59 AM, Thomas Clement wrote: Another solution is to copy the libcrypto.0.9.7.dylib from the 10.5 SDK into your project directory and link against that. Aren't the SDK dylibs just stubs for linking purposes? --Kyle Sluder ___

Re: libcrypto on Snow Leopard

2009-08-29 Thread Kyle Sluder
No, very much no. It's common to build against the 10.x SDK but set the deployment target to 10.y (where y < x). This is how you take advantage of new behavior while remaining binary compatible with older versions. --Kyle Sluder ___ Cocoa-dev mai

Re: libcrypto on Snow Leopard

2009-08-29 Thread Carl Harris
Nick Zitzmann wrote: So if you need to use libcrypto 0.9.7, you must use the Leopard or Tiger SDKs. You can't use the Snow Leopard SDK and libcrypto unless you want to make your software require Snow Leopard. Isn't it generally the case that an application built against the 10.6 SDK is going

Re: libcrypto on Snow Leopard

2009-08-29 Thread Jean-Daniel Dupas
Make sure to also use the headers from 10.5 SDK if you choose this solution. Le 29 août 2009 à 10:59, Thomas Clement a écrit : Another solution is to copy the libcrypto.0.9.7.dylib from the 10.5 SDK into your project directory and link against that. It works well. Regards, Thomas On Aug

Re: libcrypto on Snow Leopard

2009-08-29 Thread Thomas Clement
Another solution is to copy the libcrypto.0.9.7.dylib from the 10.5 SDK into your project directory and link against that. It works well. Regards, Thomas On Aug 29, 2009, at 2:07 AM, Steven Degutis wrote: The solution to this is pretty simple, don't link to libcrypto. Instead, just #import

NSCoder Chicag Reminder - Monday Night

2009-08-29 Thread Bob Frank
Reminder: Monday August 31st is NSCoder Chicago at the 4th Floor Michigan Ave. Apple store 6:00 - 9:00 with drinking after. Hope to see you there. Dates of interest: August 31st 6:00 - 9:00: NSCoder Chicago Apple Store 4th floor September 8th 7:00 - 8:00: CocoaHeads / CAWUG Apple St