Re: Using existing SQLite database with core data?

2008-04-07 Thread mmalc crawford
On Apr 6, 2008, at 11:58 PM, Quincey Morris wrote: On Apr 6, 2008, at 22:44, mmalc crawford wrote: The fact that Core Data is an object graph management and persistence framework does not in an of itself preclude it from reverse engineering an existing database. EOF is also an "object g

Re: Using existing SQLite database with core data?

2008-04-07 Thread Peter Zegelin
Thanks everyone - I'm quite new to this and naively assumed it might be doable. I can see now why it can't. Peter On 07/04/2008, at 12:09 PM, Peter Zegelin wrote: I have an existing database application that uses sqlite but was not created using Core Data. Is there any reasonable way to get

Re: Using existing SQLite database with core data?

2008-04-07 Thread mmalc crawford
On Apr 7, 2008, at 12:31 AM, Peter Zegelin wrote: Thanks everyone - I'm quite new to this and naively assumed it might be doable. I can see now why it can't. To reiterate, there is no reason *in principle* why Core Data could not do this. If it's something you would like to see, file an

Re: Objective-C Instance Variable Names

2008-04-07 Thread Kyle Sluder
On Mon, Apr 7, 2008 at 2:37 AM, Todd Blanchard <[EMAIL PROTECTED]> wrote: > Too late, I've been doing that since 1990 in C++. Then I'm sure you're very familiar with the fragile base class problem. Just don't do it. It's bad form because eventually it will break. And then you'll spend ages in t

Re: Using existing SQLite database with core data?

2008-04-07 Thread Quincey Morris
On Apr 7, 2008, at 00:51, mmalc crawford wrote: To reiterate, there is no reason *in principle* why Core Data could not do this. Indeed, there's no reason in principle why Core Data could not be EOF. Yet a core principle of Core Data is its abstraction of the model away from the structure

Re: Using existing SQLite database with core data?

2008-04-07 Thread mmalc crawford
On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote: To reiterate, there is no reason *in principle* why Core Data could not do this. Indeed, there's no reason in principle why Core Data could not be EOF. Yet a core principle of Core Data is its abstraction of the model away from the structure

Re: NSTreeController KVO

2008-04-07 Thread Hamish Allan
On Mon, Apr 7, 2008 at 2:04 AM, Chris Suter <[EMAIL PROTECTED]> wrote: > Have you seen this: > I had not (I'd only ever changed to-many relationships thro

Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new to Cocoa am getting nowhere really fast! For a start, I don't seem to be able to find a way to test for a modifier key during the actual drag. Can a

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Allison Newman
I'm no expert, but you might want to look at mouseDownFlags in NSCell. Alternatively, you can recover the modifiers from the NSEvent given in mouseDown in your control. Or, you could wait until someone that knows what they are actually talking about replies :-) Alli __

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new to Cocoa am getting nowhere really fast! For a start, I don't seem to be able to find a way to test for

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 07/04/2008, at 9:14 PM, Allison Newman wrote: I'm no expert, but you might want to look at mouseDownFlags in NSCell. Alternatively, you can recover the modifiers from the NSEvent given in mouseDown in your control. Or, you could wait until someone that knows what they are actually tal

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new to Cocoa am getting nowhere really fast! For a star

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Ron Fleckner
On 07/04/2008, at 10:10 PM, Peter Zegelin wrote: On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new t

Obj-C idioms for list based tasks

2008-04-07 Thread Paul Sargent
Coming from other object based languages I'm aware that each language can have it's own idioms for common tasks. In particular coming from doing a lot of python, I'm finding myself wanting to do a few things with NSArrays that I would do quite easily with python lists. Can anybody suggest a good w

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 08 à 14:10, Peter Zegelin a écrit : On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new to

Re: NSVector, CGVector Additions

2008-04-07 Thread Stefan Hafeneger
Okay, I agree. So then just imagine the NS prefix is something else. Now please focus on the code not the naming conventions. ;-) With best wishes, Stefan Am 07.04.2008 um 06:08 schrieb Jens Alfke: On 6 Apr '08, at 11:59 AM, Stefan Hafeneger wrote: This is kind of a class Addition so the N

Re: activate my application while dragging on other application window

2008-04-07 Thread Manfred Schwind
My application is primarily designed for maximum use of Monitor space. For that, End user will divide the monitor space in to set of different size grids. Based on his requirement, he will move particular application window to a grid. You should take a look at NSAccessibility. I think it's possi

How inspect pending performSelectorOnMainThread ?

2008-04-07 Thread Jacob Engstrand
Hi all, In a separate thread I call: [self performSelectorOnMainThread: @selector(broadcastMessage:) withObject: nil waitUntilDone: NO]; Now, is there a way for the main thread to inspect the queue of pending messages, their targets and arguments? (I would like my unit test to verify that

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 14:10, Peter Zegelin a écrit : On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on

Re: Is this a bug in Cocoa 'isLike' ?

2008-04-07 Thread Matt Burnett
Sounds like a bug to me. I have the same issue on a MBP with 10.5.2. Although i suppose this could be 'working as intended' since the pattern formats for isLike: dont seem to be well documented. On Apr 7, 2008, at 9:11 AM, Yvan BARTHÉLEMY wrote: On my machine (quite recent 20 inches iMac x86

Re: Objective-C Instance Variable Names

2008-04-07 Thread Richard Somers
On Apr 5, 2008, at 7:17PM, Quincey Morris wrote: The most common situation where I run into local/instance variable name conflicts is setter methods. If the property and the instance variable are both 'whatever', it makes sense to me to call the setter argument variable 'newWhatever', beca

Is this a bug in Cocoa 'isLike' ?

2008-04-07 Thread Yvan BARTHÉLEMY
On my machine (quite recent 20 inches iMac x86), following (reduced) code seems to go in a infinite loop... Checkpoint 2 is never reached. The number of 'x' characters is important. Should I send it in reporter ? #import int main (int argc, const char * argv[]) { NSAutoreleasePool * po

Re: Objective-C Instance Variable Names

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 1:45 AM, Kyle Sluder wrote: Then I'm sure you're very familiar with the fragile base class problem. Just don't do it. Ivar name conflicts don't have anything to do with the FBC problem, not in compiled languages. The FBC problem arises when the size of a superclass chang

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 08 à 16:03, Peter Zegelin a écrit : On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 14:10, Peter Zegelin a écrit : On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSS

Re: Is this a bug in Cocoa 'isLike' ?

2008-04-07 Thread Jean-Daniel Dupas
If this is not a bug in Cocoa, so it's a bug in the documentation, so you can fill a bug report. Le 7 avr. 08 à 16:26, Matt Burnett a écrit : Sounds like a bug to me. I have the same issue on a MBP with 10.5.2. Although i suppose this could be 'working as intended' since the pattern format

Re: Obj-C idioms for list based tasks

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 5:33 AM, Paul Sargent wrote: Can anybody suggest a good way to: 1) Given an ordered set of objects, create a new non-mutable ordered set, with all the duplicates removed? 2) Given an ordered set of objects, create a new non-mutable ordered set, with each entry being the o

Re: How inspect pending performSelectorOnMainThread ?

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 6:24 AM, Jacob Engstrand wrote: In a separate thread I call: [self performSelectorOnMainThread: @selector(broadcastMessage:) withObject: nil waitUntilDone: NO]; Now, is there a way for the main thread to inspect the queue of pending messages, their targets and arguments?

Re: How inspect pending performSelectorOnMainThread ?

2008-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 08 à 16:49, Jens Alfke a écrit : On 7 Apr '08, at 6:24 AM, Jacob Engstrand wrote: In a separate thread I call: [self performSelectorOnMainThread: @selector(broadcastMessage:) withObject: nil waitUntilDone: NO]; Now, is there a way for the main thread to inspect the queue of pend

Re: Objective-C Instance Variable Names

2008-04-07 Thread glenn andreas
On Apr 7, 2008, at 9:39 AM, Jens Alfke wrote: On 7 Apr '08, at 1:45 AM, Kyle Sluder wrote: Then I'm sure you're very familiar with the fragile base class problem. Just don't do it. Ivar name conflicts don't have anything to do with the FBC problem, not in compiled languages. The FBC pro

Re: Objective-C Instance Variable Names

2008-04-07 Thread Jim Correia
On Apr 7, 2008, at 11:12 AM, glenn andreas wrote: Right, but by having dummy placeholders, they can later rename "_extra" to "_something", and if you have an ivar named "_something" there will be problems. (For that matter, they could also change existing ivar names as well). No, the bre

Re: Image Processing

2008-04-07 Thread Kenny Leung
If you ask an NSImage for its size, the DPI in the image is taken into account. You can ask for pixelsHigh and pixelsWide in order to get the number of pixels. -Kenny On Apr 6, 2008, at 1:40 PM, Lorenzo wrote: Still working with image-processing... I have a source image 1680 x 1050 with (j

[Meeting] Chicago CocoaHeads / Cawug - MacRuby

2008-04-07 Thread Bob Frank
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting Tuesday, April 8th, at 7:00 PM at the Apple Store on Michigan Ave. Agenda: - Introductions & Announcements - Chuck Remes on MacRuby - adjournment to O'Toole's

Re: Obj-C idioms for list based tasks

2008-04-07 Thread William Turner
On Apr 7, 2008, at 5:33 AM, Paul Sargent wrote: Can anybody suggest a good way to: 1) Given an ordered set of objects, create a new non-mutable ordered set, with all the duplicates removed? You could do this using the KVC set and array operators (http://developer.apple.com/documentation/C

NSURLConnection status updates

2008-04-07 Thread Matt Burnett
I am using NSURLConnection to send large posts (>1MB) to a web server. How can i get the status/progress information for sending the request. I can get the progress for receiving the reply with connection:didReceiveResponse: and connection:didReceiveData:, but i dont seem to see anything fo

Re: Obj-C idioms for list based tasks

2008-04-07 Thread Jake Carter
You may also want to look in to NSPredicate and an arrays 'filteredArrayUsingPredicate:' method. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSPredicate_Class/Reference/NSPredicate.html http://theocacao.com/document.page/346 http://developer.apple.com/documentati

Re: Obj-C idioms for list based tasks

2008-04-07 Thread John Stiles
Cocoa doesn't have ordered sets. It has arrays (NSArray), unordered sets (NSSet), and unordered key-value tables (NSDictionary). Any of these can optionally be mutable. NSCountedSet also allows for the equivalent of a "multiset," but for some reason there is no NSCountedDictionary, for the equi

Re: Saving AttributedString with Attachments to RTFD

2008-04-07 Thread Douglas Davidson
As others have noted, RTFD is a packaged file format, consisting of a directory in the file system containing the underlying RTF and any attachments. There are therefore two representations of RTFD: first, the on-disk format, and second, a serialized format used on the pasteboard. There

IB outlets and NSCollectionViews

2008-04-07 Thread Torsten Curdt
Hm ...I was trying to bind a button inside a NSCollectionViewItem view to an action in my AppController. This obviously does not work. Of course the view is only a prototype that gets cloned per item in the collection but I was expecting to just get the instance passed on the call. So how

Open-source NSToolbar?

2008-04-07 Thread John Stiles
I'm looking for an open-source NSToolbar-like toolbar implementation... do any exist? I haven't found any yet. I want to check it out and see how some things are done... I don't really need a ton of features outside the standard toolbar stuff, it's more for learning/research to see what can be

Newbie question

2008-04-07 Thread john darnell
Hello all: For those of you who do not like answering elementary questions, you might want to give this message a pass. I am making my first foray into writing Cocoa applications, and I have created a very simple class. The header file looks like this: /* Chooser */ #import @interfa

Re: Open-source NSToolbar?

2008-04-07 Thread Daniel Jalkut
Cocotron is a great place to look for things like this: http://cocotron.googlecode.com/svn/trunk/AppKit/NSToolbar.subproj/ Don't know how well developed the NSToolbar is, but in general they have a lot of cool stuff ported. Daniel On Apr 7, 2008, at 12:47 PM, John Stiles wrote: I'm looking

Re: Open-source NSToolbar?

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 9:47 AM, John Stiles wrote: I'm looking for an open-source NSToolbar-like toolbar implementation... do any exist? I haven't found any yet. I'm not aware of any. My hunch is that it'd be a pain to re-implement with all of the features users expect from standard toolbars.

Re: Newbie question

2008-04-07 Thread Michael Vannorsdel
Change the function declarations/definitions to - (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis) On Apr 7, 2008, at 10:45 AM, john darnell wrote: Hello all: For those of you who do not like answering elementary questions, you might want to give this message a pas

Re: Newbie question

2008-04-07 Thread I. Savant
On Mon, Apr 7, 2008 at 1:05 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > Change the function declarations/definitions to > > - (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis) More to the point, the method "Returns an NSString pointer", or "NSString *". http://de

Re: Newbie question

2008-04-07 Thread Jean-Daniel Dupas
Recheck the method declaration syntax in your book. It's - (NSString *)myMethodName:(type)arg; and not - (NSString ) *myMethodName:(type)arg; the '*' in "NSString *" is part of the type. Le 7 avr. 08 à 18:45, john darnell a écrit : Hello all: For those of you who do not like answering elem

Re: Newbie question

2008-04-07 Thread Hamish Allan
On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > Change the function declarations/definitions to > > - (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis) Additionally, it's good practice to start method names and variables with lowercase lette

Re: Newbie question

2008-04-07 Thread Johannes Huning
Try - (NSString *)ChooseString:(int) IntVal; Always put your return type into the brackets. On Apr 7, 2008, at 6:45 PM, john darnell wrote: - (NSString) *ChooseString:(int) IntVal; ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Newbie question

2008-04-07 Thread Douglas Davidson
On Apr 7, 2008, at 10:28 AM, Hamish Allan wrote: On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: Change the function declarations/definitions to - (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis) Additionally, it's good practice to

Re: ImageIO key properties

2008-04-07 Thread David Duncan
On Apr 6, 2008, at 11:22 PM, Mirko Viviani wrote: for an application targeted for 10.4 I need to access the value of some key properties defined for 10.5 in CGImageProperties.h, like kCGImagePropertyExifAuxDictionary. Is there a legal way to do this? Assuming you have your project set pr

Re: Obj-C idioms for list based tasks

2008-04-07 Thread Erik Buck
This is a prime use for Higher Order messaging: http://www.metaobject.com/papers/Higher_Order_Messaging_OOPSLA_2005.pdf http://www.cocoadev.com/index.pl?HigherOrderMessaging http://www.oreilly.com/pub/a/mac/2004/07/16/hom.html HOM takes this // which of these employee objects earn more than 10

Re: Southern California Coders? (Cocoaheads carpool)

2008-04-07 Thread Brad Willoughby
To follow up, a few of us from San Diego chatted offline and have decided to meet around 5:30pm this Wednesday at Vinaka Cafe ( http://www.yelp.com/biz/vinaka-cafe-carlsbad ) so we can carpool up to Cocoaheads in Lake Forest. Contact me offline if you'd like to hitch a ride or be a driver. Cheers

RE: Newbie question

2008-04-07 Thread john darnell
Thanks to all of you who answered my question. I had seven answers within an hour of posting, and it shows me that this bunch is willing to help, even with simple questions (I groaned when I read the first message, and realized how *obvious* the syntax error was). I'll try not to abuse this lis

[OT] Dallas Cocoa Meetup?

2008-04-07 Thread Patrick Burleson
I was wondering how many on this list might interested in a Cocoa type meetup in the Dallas/Fort Worth area? I've very new to Cocoa and I think it would be great to get some people together to learn from each other and to see what others are working on. Maybe even get a full fledged CocoaHeads cha

Re: Newbie question

2008-04-07 Thread Johannes Huning
There're also 2 articles concerning "cocoa style" available on CocoaDevCentral: http://cocoadevcentral.com/articles/82.php On Apr 7, 2008, at 7:40 PM, Douglas Davidson wrote: On Apr 7, 2008, at 10:28 AM, Hamish Allan wrote: On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel <[EMAIL PROTE

Re: NSViewController's representedObject and NSArrayController's selection don't mix?

2008-04-07 Thread Jacob Lukas
In diagnosing this problem, I tried to use the NSKeyValueObservingOptionPrior when observing NSArrayController's selection, but I never got a observeValueForKeyPath:ofObject:change:context: where the change dictionary contained an NSKeyValueChangeNotificationIsPriorKey entry. This leads m

Re: Newbie question

2008-04-07 Thread Michael Watson
I'd like to add that since you were confused by the error you were given, you might want to pick up a book on C, which will explain pointers and function declarations/definitions to you. Objective-C is a thin superset of C, so the rules that apply to ANSI C apply to Obj-C as well. Get a c

Re: Using existing SQLite database with core data?

2008-04-07 Thread Chris Hanson
On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote: On Apr 7, 2008, at 00:51, mmalc crawford wrote: To reiterate, there is no reason *in principle* why Core Data could not do this. Indeed, there's no reason in principle why Core Data could not be EOF. Yet a core principle of Core Data is its a

Re: ImageIO key properties

2008-04-07 Thread Mirko Viviani
On 07/apr/08, at 19:43, David Duncan wrote: for an application targeted for 10.4 I need to access the value of some key properties defined for 10.5 in CGImageProperties.h, like kCGImagePropertyExifAuxDictionary. Assuming you have your project set properly, standard weak-linking policies s

Re: ImageIO key properties

2008-04-07 Thread David Duncan
On Apr 7, 2008, at 12:46 PM, Mirko Viviani wrote: I've tried linking with -framework and -weak_framework with the same results. kCGImagePropertyDNGDictionary and others properties declared in CGImageProperties.h are not defined in the framework. Is it a bug or am I missing something? You

NSCoder Night (Re: [OT] Dallas Cocoa Meetup?)

2008-04-07 Thread Chris Hanson
On Apr 7, 2008, at 11:36 AM, Patrick Burleson wrote: I was wondering how many on this list might interested in a Cocoa type meetup in the Dallas/Fort Worth area? I've very new to Cocoa and I think it would be great to get some people together to learn from each other and to see what others are w

Re: Scaling a window background image quickly

2008-04-07 Thread Mike R. Manzano
Do you know if SVG in a webkit view performs faster than a PDF in an NSImageView? Mike On Apr 6, 2008, at 3:38 PM, glenn andreas wrote: If only there were some sort of Scalable Vector Graphics format that were available, oh, yeah, there is - SVG is available via WebKit on Leopard, not to m

Re: Objective-C Instance Variable Names

2008-04-07 Thread Ricky Sharp
On Apr 7, 2008, at 10:26 AM, Jim Correia wrote: There is already the possibility of KVC collisions regardless of how you name your iVars. Consider... NSBaseClass, and MyClass derived from it. Targetting 10.4, MyClass has an iVar named mImportantProperty (using m prefix here only for argu

Re: [OT] Dallas Cocoa Meetup?

2008-04-07 Thread elliott . harris
Hey Patrick, I was going to start a chapter up earlier in the year, but things got busy, and I'll be in California all summer. I'm certainly interested in it when I get back in the Fall, and possibly even gauging interest before then. Cheers, Elliott __

Re: [OT] Dallas Cocoa Meetup?

2008-04-07 Thread Waqar Malik
I would be interested in a group closer to Fort Worth (Grapevine, Southlake, Keller). --Waqar On Apr 7, 2008, at 1:36 PM, Patrick Burleson wrote: I was wondering how many on this list might interested in a Cocoa type meetup in the Dallas/Fort Worth area? I've very new to Cocoa and I think it

[MEET]: Los Angeles CocoaHeads Thursday April 10th 7:30pm

2008-04-07 Thread Rob Ross
Howdy LA CocoaHeads! Ricardo Silva will be giving us a presentation on Quartz Composer. We meet on Thursday at the offices of E! Entertainment at 7:30pm. Our meeting location is 5750 Wilshire Blvd Los Angeles, CA 90036. Here's a google map of the location: http://www.google.com/maps?f=q&hl=

Re: Using existing SQLite database with core data?

2008-04-07 Thread Quincey Morris
On Apr 7, 2008, at 12:10, Chris Hanson wrote: On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote: Yet a core principle of Core Data is its abstraction of the model away from the structure of the various persistent store formats. Core Data already offers the ability for developers to use an

Binding NSTableColumn to NSArrayController programatically.

2008-04-07 Thread Martin Linklater
Hi - I'm having trouble binding my table column to a key in my NSArrayController. My NSArrayController is set to control an array of NSMutableDictionary objects. This array controller has its contentsArray bound to the 'actualArray' (NSMutableArray) of my class object. When I set the bind

NSConnection registerName

2008-04-07 Thread SD
I have a deamon application that starts up and registers itself using a pre-defined name. (NSConnection registerName: name] I have another application that is started and it looks for the connection with [NSConnection rootProxyForConnectionWithRegisteredName: name host:nil]. This all works

Re: NSTreeController / CoreData still broken in 10.5?

2008-04-07 Thread Adam Gerson
However, I am using CoreData with my TreeController bound to a Managed Object Context. Can I still supply a contentArray in this situation? Adam On Sun, Apr 6, 2008 at 9:36 AM, Jonathan Dann <[EMAIL PROTECTED]> wrote: > Hi Adam, > > I've just finished a blog post on this, it's not about using it

[SOLVED] Re: NSViewController's representedObject and NSArrayController's selection don't mix?

2008-04-07 Thread Jacob Lukas
The problem ended up being that the object returned by - [NSArrayController selection] is a private proxy object, which dynamically proxies the current selection of the array controller. This means that the views were trying to stop observing the current selection's relationships, rather tha

Continunous NSSegmentedControl?

2008-04-07 Thread Randall Meadows
I have an NSSegmentedControl on which I've enabled the "continuous" setting (via IB). However, it doesn't send out continuous messages while I'm continually pressing one of the segments; it only fires (once) upon mouseUp. I can find no documentation that says that NSSegmentedControl *DOE

printing PDF issues

2008-04-07 Thread Victor Bovio
Hi, I have a document-based Cocoa application, in which I display quartz routines directly to the context of my NSView. Following the documentation I added this methods to enable printing in my application: on NSDocument: - (void)printDocumentWithSettings:(NSDictionary *)printSettings s

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 08/04/2008, at 12:41 AM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 16:03, Peter Zegelin a écrit : On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 14:10, Peter Zegelin a écrit : On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegeli

Apparent bug with button hotkeys that use shift

2008-04-07 Thread John Stiles
I am trying to add some hotkeys to buttons in my app, and I've hit a weird snag. Specifically, the shift modifier flag appears to be ignored for anything other than alphanumeric keys—i.e. I can't make a button that corresponds to "cmd+F1" and a second button that corresponds to "cmd+shift+F1".

Re: Problems with Split Views?

2008-04-07 Thread Ben Einstein
For the most part, anything you want to do with NSSplitView you can do with RBSplitView (or others) and vice versa. Where RBSplitView really excels is its ease of implementation. Even though NSSplitView in 10.5 is significantly better, I still find that RBSlitView has the upper hand in term

Re: How do I embed a font in an app?

2008-04-07 Thread Brad Peterson
Hi, Just embed it as a resource, and then use the code below to load it for use. You can just reference it by name from then on (well, as long as your app is running) as you would any other font. (Where "kDefaultFontFile" is the name of your TTF file. Ex: @"MyFont.TTF") HTH! B

Re: Apparent bug with button hotkeys that use shift

2008-04-07 Thread John Stiles
For any curious Apple engineers, I've just filed this issue as rdar://5848023 and attached a test app (four lines of code). John Stiles wrote: I am trying to add some hotkeys to buttons in my app, and I've hit a weird snag. Specifically, the shift modifier flag appears to be ignored for anyth

fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Mike
I need to get the creator code of my app's bundle without diving into the bundle and reading the plist directly. My code looks like this: OSType creator = 0; NSDictionary *itemDictionary = nil; itemDictionary = [ defaultFileManager fileAttributesAtPath:enumeratedItem traverseLink:NO ];

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
I have managed to get my slider working the way I want it to by overriding mousedown and mousedragged, however there is still one small detail. I cant see how to make the slider knob show its 'pushed' image while the slider is being dragged. Does anyone know how to do this? thanks! Pet

Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Ken Thomases
On Apr 7, 2008, at 10:11 PM, Mike wrote: I need to get the creator code of my app's bundle without diving into the bundle and reading the plist directly. [... snip ...] The problem is, fileHFSCreatorCode on the returned attributes dictionary always returns 0 or an empty OSType. Is there som

Re: Problems with Split Views?

2008-04-07 Thread Peter Zegelin
Yes it does - thanks! RBSplitView works great and actually experimented with it before playing around with the regular NSSplitView. Peter On 08/04/2008, at 10:35 AM, Ben Einstein wrote: For the most part, anything you want to do with NSSplitView you can do with RBSplitView (or others) and

Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Mike
In that case, how do I get the fullpath to the item from the iterator? There doesn't seem to be any key in the info dictionary for the current item's fullpath. Thanks, Mike Ken Thomases wrote: On Apr 7, 2008, at 10:11 PM, Mike wrote: I need to get the creator code of my app's bundle without

Re: [OT] Dallas Cocoa Meetup?

2008-04-07 Thread Dennis J. Hagner
Hey, count me in. I'm in Irving. Dennis J. Hagner -- Date: Mon, 7 Apr 2008 15:49:26 -0500 From: Waqar Malik <[EMAIL PROTECTED]> Subject: Re: [OT] Dallas Cocoa Meetup? To: Patrick Burleson <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Message-ID: <[EMAIL PROTECTE

Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Ken Thomases
On Apr 7, 2008, at 10:49 PM, Mike wrote: In that case, how do I get the fullpath to the item from the iterator? There doesn't seem to be any key in the info dictionary for the current item's fullpath. Huh? You mean the enumeratedItem from your original code snippet? You never indicated w

Re: NSURLConnection status updates

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 8:35 AM, Matt Burnett wrote: I am using NSURLConnection to send large posts (>1MB) to a web server. How can i get the status/progress information for sending the request. Set the request body to a custom stream implementation, and your stream will get called as the conne

Re: NSConnection registerName

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 3:32 PM, SD wrote: If I launch the deamon via command line using my regular user and then I launch the application using the Security.framework authentication, the application does not find the connection and starts a second deamon. Sounds like the app and daemon are run

Re: How do I embed a font in an app?

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 5:52 PM, Brad Peterson wrote: Just embed it as a resource, and then use the code below to load it for use. This seems less efficient (and more complicated) than either of the two earlier solutions. Loading the font into memory first means it takes up heap space, which is

Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 8:11 PM, Mike wrote: I need to get the creator code of my app's bundle without diving into the bundle and reading the plist directly. You're mixing up HFS creator codes with bundle identifiers, I think. HFS creator codes are attributes of document files that identify what

NSUndoManager grouping somewhat broken?

2008-04-07 Thread Graham Cox
I am getting funny results using grouping in NSUndoManager. If I begin a group on mouse down, and end the group on mouse up, even if I do nothing in between, it seems to record an undo task, with the plain name "Undo" in the menu, dirtying the document. The "task" is null - it doesn't actua

alBufferData, void * data

2008-04-07 Thread David Harper
hello! I'm trying to figure out how to use openAL without alut (as alut is no longer included in the openAL framework). The roadblock I am facing is that alBufferData requires a pointer to a sound's bitmap data. NSSound doesn't seem to have the appropriate method. Any suggestions? Please let

Re: alBufferData, void * data

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 11:20 PM, David Harper wrote: I'm trying to figure out how to use openAL without alut (as alut is no longer included in the openAL framework). The roadblock I am facing is that alBufferData requires a pointer to a sound's bitmap data. By 'bitmap' do you mean the decompr