NSDistantObject in Core Data

2008-11-12 Thread Bridger Maxwell
Hey, I am creating a server in which I would like to somehow add a relationship to an NSDistantObject in my Core Data object graph. I know NSDistantObjects can't be archived. I will have an an array of all of the live NSDistantObjects in my application, I just need to relate them to entities in Cor

Re: Weird bug in IB...

2008-11-12 Thread Jean-Nicolas Jolivet
Thanks for the info! That's good to know! One quick question, how can I modify my TextView's z-order? I'm looking at NSView's methods but can't seem to find one that does that? (I'm probably just missing it since NSView's got a good bunch of'em!... :) I always did it in IB before Jean

Re: Problem with nested tags in xml

2008-11-12 Thread Stephen J. Butler
Just realized my beautiful state machine diagram got striped from the email :) Here it is: https://netfiles.uiuc.edu/sbutler1/www/coutry-state-machine.png ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: Thread programming

2008-11-12 Thread Stephen J. Butler
On Thu, Nov 13, 2008 at 12:18 AM, Mahaboob <[EMAIL PROTECTED]> wrote: > I'm very new to thread programming. I tried with using NSRunLoop, but it > can't succeeded. Here I'm attaching the code file. In the thread where and > how I need to use runloop ? Your attachment didn't come through. Anyway, h

Re: Weird bug in IB...

2008-11-12 Thread Graham Cox
On 13 Nov 2008, at 5:17 pm, Jean-Nicolas Jolivet wrote: Any particular reasons why my label will always show up behind my tableview no matter what I do?? Yes, a bug in IB. I've noticed that the Z-order of views in IB is not always (or even very often) honoured correctly, making the bring

Re: Mysterious warning

2008-11-12 Thread Graham Cox
On 13 Nov 2008, at 4:46 pm, Daniel Hyde wrote: In the process of writing this email I've noticed that wptr is initialised to NULL. Is there any case where that line might be reached without changing wptr's value first? It might be warning you that you're possibly going to decrement a NULL poi

Re: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Russ
Good call Etienne on loadNibNamed. This let me get it done. I've edited your code snippet a bit more to show what I do. To achieve a near-nibless application, I just needed to set up a very simple dummy xib file using basically the IB defaults with the "main menu" template. I edited the menu

Re: Mysterious warning

2008-11-12 Thread Chris Suter
On Thu, Nov 13, 2008 at 4:46 PM, Daniel Hyde <[EMAIL PROTECTED]> wrote: >> The order of evaluation of the arguments to a function is undefined so >> you have a problem where you're taking the address of wptr and you're >> pre-decrementing it. > > That doesn't look problematic to me -- decrementing

Re: Thread programming

2008-11-12 Thread Mahaboob
Hi, I'm very new to thread programming. I tried with using NSRunLoop, but it can't succeeded. Here I'm attaching the code file. In the thread where and how I need to use runloop ? Thanks in advance. On 11/13/08 10:15 AM, "Stephen J. Butler" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 10

Weird bug in IB...

2008-11-12 Thread Jean-Nicolas Jolivet
I'm trying to place a label over a TableView and for some reason there's just no way the label will show up once I run the app... In Interface Builder it looks good (basically it's just a label saying "Drop your files here"...) I made sure I "Sent it to front"... while sending the table vie

Re: Process Priority

2008-11-12 Thread Mr. Gecko
Ok thanks. On Nov 12, 2008, at 1:10 PM, Shawn Erickson wrote: On Wed, Nov 12, 2008 at 8:12 AM, Mr. Gecko <[EMAIL PROTECTED]> wrote: Even that command says it's 0, so I'm thinking that virtual pc is using some unknown way of changing how much processor they use. Threads can individually be

Re: CoreData - Multiple Model Files?

2008-11-12 Thread Barry Wark
If you want to treat multiple model files as if they were one (ie with relationships spanning the entities in both files), you're going to have to do a lot of extra work. Check out this post from Scott Hanson :http://stackoverflow.com/questions/130316/cross-model-relationships-in-nsmanagedobjectmod

Re: NSSplitView can't expand once collapsed

2008-11-12 Thread Qi Liu
Hi all, From apple leopard's release notes, I find this: http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSSplitView NSSplitView now uses -[NSView setHidden:] when collapsing and uncollapsing a subview instead of setting the origin of the subview's frame somewhere far, far way. O

Re: Detect the login window is being displayed

2008-11-12 Thread Ryan McGann
Originally, I need to distinguish logging out from shutting down or restarting. Since there isn't an easy way to do that, I am thinking to find a way to tell only when the user is logging out and let the machine do whatever it wants when shutting down or restarting.Do you have a better idea

Re: Thread programming

2008-11-12 Thread Stephen J. Butler
On Wed, Nov 12, 2008 at 10:38 PM, Mahaboob <[EMAIL PROTECTED]> wrote: > When I'm calling the thread, it invokes but not going to > connectionEstablished and other methods. > Where I got wrong? How can I solve this? You need to run th runloop (NSRunLoop) in your new thread.

Thread programming

2008-11-12 Thread Mahaboob
Hi, I'm working on a mailing application using Pantomime framework. I used one method to send email using SMTP, which calls a method [smtp connectInBackgroundAndNotify]; which automatically calls the connection established method, which intern calls serviceInitialized: messageSent: and connectionT

Re: project organization and framework linking

2008-11-12 Thread Torsten Curdt
>> Any wise words on this? How would you approach this? > > I wouldn't use a framework unless you intend on sharing code between > multiple projects. Well, it's across multiple sub projects. > If you're doing something that's pretty small scale, then > your current setup will be just fine. ...bu

Re: Problem with nested tags in xml

2008-11-12 Thread Stephen J. Butler
On Wed, Nov 12, 2008 at 6:22 PM, Ariel Rodriguez <[EMAIL PROTECTED]> wrote: > thanks Stephen for your kind response. I think i've grasp the theory, but i > am not qite sure about the best way to implement the algorithm. Perhaps to > set a flag to indicate wether the "country" object is the root one

Re: Core Data search box: how to preserve selection while

2008-11-12 Thread Steve Steinitz
Hi Arthur, You wrote, When the user searches for some item, the selection in the table is not preserved, which causes the rest of the application to behave unexpectedly. How can I preserve this selection, and make the user select a new item explicitly also when using the search box? If you wa

Re: Apple's NSPersistentDocument Tutorial and MOCs

2008-11-12 Thread Keary Suska
On Nov 12, 2008, at 4:38 PM, Brad Gibbs wrote: This works fine for attributes, but I'd also like to create relationships between the new product and existing category and manufacturer objects in the main MOC using pop up buttons. I can populate the pop up buttons easily enough in IB usin

Re: overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread Peter N Lewis
- (void) loadVew { contentView = [[UIImageView alloc] initWithFrame]; ... self.view = contentView; [contentView release]; ... } As Luke said, you need to read the Objective C 2.0 language section on properties. First off, you should understand t

Re: How can I use NSTextField like a button?

2008-11-12 Thread Peter N Lewis
I want to use some kind of URL text in a dialog, which the users can click on and which should then open the browser with a specific URL. Here is an example of how it should look like: http://man.icalamus.net/fr/img/menu/about_unregistered.gif I used an NSTextField with blue text and connected

Re: project organization and framework linking

2008-11-12 Thread Nick Zitzmann
On Nov 12, 2008, at 5:43 PM, Torsten Curdt wrote: Any wise words on this? How would you approach this? I wouldn't use a framework unless you intend on sharing code between multiple projects. If you're doing something that's pretty small scale, then your current setup will be just fine.

Re: Detect the login window is being displayed

2008-11-12 Thread Iceberg-Dev
On Nov 12, 2008, at 10:56 PM, Maggie Zhang wrote: Hi, Is there a way (like a notification or API) that the daemon can figure out when the login window is being displayed after the user logs out? SystemConfiguration Framework. ___ Cocoa-dev m

project organization and framework linking

2008-11-12 Thread Torsten Curdt
I hope this is not too OT. I am after some advice on how to organize projects best. Let's say I have project that has - a preference pane - an agent app - a user application - some shared code between them Right now I have a top project with just an aggregation target. I has references to all (s

Re: CoreData - Multiple Model Files?

2008-11-12 Thread Sean McBride
On 11/12/08 11:27 AM, Todd Blanchard said: >I'm working with another developer on an app with a rather elaborate >core data schema. We are each working on different parts of the >schema. Having one model just isn't scaling - version control does >not like model files - they constantly get broken

Re: Problem with nested tags in xml

2008-11-12 Thread Ariel Rodriguez
This is a classic example of where to use a finite state machine: Basically, you have an initial state and then an "inside country" state. Then inside your parser:didEndElement:namespaceURI:qualifiedName: you behave differently based on the c

Apple's NSPersistentDocument Tutorial and MOCs

2008-11-12 Thread Brad Gibbs
Hi, I've followed along through the NSPersistentDocument tutorial from Apple and made some adjustments for my own needs. I now have a sheet that drops down to allow the user to add a new product record. This is handled in its own MOC and the relevant key/value pairs are copied to the ma

Re: Validating a non-optional transient Core Data property - it can be erased?!

2008-11-12 Thread Quincey Morris
On Nov 12, 2008, at 13:31, Arthur C. wrote: In my Core Data database I have a property called 'target' (double), which is transient and required (i.e. 'non-optional' in the model). It is dependent on another variable 'color'; so for each color there is a 'target'. As I want to show only the

Distributed Objects invocation dispatch not thread safe??

2008-11-12 Thread Dave Cox
zone_free #3 0x92658094 in __CFDictionaryGrow #4 0x9265893f in CFDictionarySetValue #5 0x95335aed in addConversation #6 0x952fbde7 in -[NSConnection _shouldDispatch:invocation:sequence:coder:] #7 0x952f9f8e in -[NSConnection handleRequest:sequence:] #8 0x952f994d in -[NSCo

Re: Detect the login window is being displayed

2008-11-12 Thread Kyle Sluder
On Wed, Nov 12, 2008 at 6:22 PM, Maggie Zhang <[EMAIL PROTECTED]> wrote: > Originally, I need to distinguish logging out from shutting down or > restarting. Since there isn't an easy way to do that, I am thinking to find > a way to tell only when the user is logging out and let the machine do > wha

Re: Detect the login window is being displayed

2008-11-12 Thread Maggie Zhang
Originally, I need to distinguish logging out from shutting down or restarting. Since there isn't an easy way to do that, I am thinking to find a way to tell only when the user is logging out and let the machine do whatever it wants when shutting down or restarting.Do you have a better idea how to

BYU CocoaHeads meeting

2008-11-12 Thread Dave DeLong
Hi everyone, We just wanted to remind you that we're having our monthly meeting tomorrow (13 Nov 2008) at 7:00pm on BYU campus in Provo, Utah. We'll be talking about unit testing in Cocoa and getting the most from Xcode. More information can be found on the meeting page: http://cocoahea

Re: Mysterious warning

2008-11-12 Thread Chris Suter
On Wed, Nov 12, 2008 at 10:20 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > I just added some fairly old C++ lex/bison code to my app, code that has > been in use for a long time elsewhere and works fine. My app is compiling > with much stricter warnings than many of my other projects though, and thi

Re: How are we supposed to retrieve the generic bundle icon?

2008-11-12 Thread Iceberg-Dev
On Nov 11, 2008, at 10:39 PM, Stephen J. Butler wrote: On Tue, Nov 11, 2008 at 3:34 PM, Iceberg-Dev <[EMAIL PROTECTED]> wrote: On Nov 11, 2008, at 9:44 PM, Gregory Weston wrote: Perhaps I'm missing something, but why not then retrieve the icon for the file rather than for the type? I don

Re: MyDocument's Window Outlet...

2008-11-12 Thread Kyle Sluder
On Wed, Nov 12, 2008 at 1:22 PM, Jean-Nicolas Jolivet <[EMAIL PROTECTED]> wrote: > What's the use of this outlet if I can't access > it in my code? It's there for the default NSDocument machinery to set up an NSWindowController for you. If you override -[NSDocument windowNibName], then NSDocument

Re: Detect the login window is being displayed

2008-11-12 Thread Kyle Sluder
On Wed, Nov 12, 2008 at 4:56 PM, Maggie Zhang <[EMAIL PROTECTED]> wrote: > Is there a way (like a notification or API) that the daemon can figure out > when the login window is being displayed after the user logs out? Why do you need to do this? Your app must be configured for a very special set

Detect the login window is being displayed

2008-11-12 Thread Maggie Zhang
Hi, Is there a way (like a notification or API) that the daemon can figure out when the login window is being displayed after the user logs out? Thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Problem with nested tags in xml

2008-11-12 Thread Stephen J. Butler
On Wed, Nov 12, 2008 at 3:41 PM, Ariel Rodriguez <[EMAIL PROTECTED]> wrote: > I'm playing with a REST implementation. Basically, i am following this > tutorial: > http://developer.apple.com/webapps/articles/creatingrestfulclients.html > And, as you can see, the xml produced by the app is this: >

Problem with nested tags in xml

2008-11-12 Thread Ariel Rodriguez
I'm playing with a REST implementation. Basically, i am following this tutorial: http://developer.apple.com/webapps/articles/creatingrestfulclients.html And, as you can see, the xml produced by the app is this: 37id> Canada 12740 caiso_code> Where each country has a country tag (the

Re: tableView:objectValueForTableColumn:row not being called

2008-11-12 Thread David Blanton
The problem was in NSSplitVew and how it handles multiple subviews. I do not know exactly what that problem was. The original design was a 'placeholder view' as one side of the splitview. To this placeholder view I programatically added a view (built in IB) that had a custom view and table

Validating a non-optional transient Core Data property - it can be erased?!

2008-11-12 Thread Arthur C .
In my Core Data database I have a property called 'target' (double), which is transient and required (i.e. 'non-optional' in the model). It is dependent on another variable 'color'; so for each color there is a 'target'. As I want to show only the target for the selected color, I use this trans

Core Data search box: how to preserve selection while searching?

2008-11-12 Thread Arthur C .
Hello, I have a Core Data database, of which always one item is selected. The values of the selected item are used in another (non-Core Data) part of the application. Now this leads to problems with the use of the search box. When the user searches for some item, the selection in the table is

Size of the resize indicator

2008-11-12 Thread Eric Gorr
I would like to be able to use the mini version of a NSScrollView and have that scroll view extend into the bottom right corner of a resizable NSPanel where the resize indicator for the window is drawn. Unfortunately, the resize indicator only seems to fit the regular sized version of a NSS

JPEG compression in TIFF files. NSTIFFCompressionJPEG

2008-11-12 Thread Alexander Shmelev
Hello, Our customer asks us to save images in TIFF files with JPEG compression. But in NSImage documentation is written that JPEG compression is no longer supported. Why Apple decided to stop support JPEG compression in NSImage class? Also I prepared TIFF with JPEG compression on Windows,

RE: Opening persistent data store -- Problem solved, thanks.

2008-11-12 Thread John Velman
Bcc: Subject: Problem Solved,and Thanks Re: Opening persistent data store Reply-To: In-Reply-To: <[EMAIL PROTECTED]> A note of thanks to Jerry, Charles, and Quincey And an update on my progress. Sorry this took so long, but I haven't had much chance to work on this during the past week. He

Re: tableView:objectValueForTableColumn:row not being called

2008-11-12 Thread David Blanton
Are you also calling -reloadData as suggested? YES David Blanton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple

CoreData - Multiple Model Files?

2008-11-12 Thread Todd Blanchard
I'm working with another developer on an app with a rather elaborate core data schema. We are each working on different parts of the schema. Having one model just isn't scaling - version control does not like model files - they constantly get broken and are a nightmare to merge. Is it p

Re: MyDocument's Window Outlet...

2008-11-12 Thread Nick Zitzmann
On Nov 12, 2008, at 11:22 AM, Jean-Nicolas Jolivet wrote: Of course the easy work around was to declare a new outlet that I named "mainWindow" and connected to my file owner, that way I can access the main window from my code... but still I was wondering why it is not possible to access th

Re: Process Priority

2008-11-12 Thread Shawn Erickson
On Wed, Nov 12, 2008 at 8:12 AM, Mr. Gecko <[EMAIL PROTECTED]> wrote: > Even that command says it's 0, so I'm thinking that virtual pc is using some > unknown way of changing how much processor they use. Threads can individually be created with different priorities. In reality threads are the real

Re: Blue default button style hangs.

2008-11-12 Thread j o a r
On Nov 12, 2008, at 10:45 AM, Russ wrote: I'm trying to get the blue default button style to show up. It's NSMomentaryPushInButton with NSRoundedBezelStyle. I have it set as InitialFirstResponder. Works fine to start with. But if I setKeyEquivalent:@"\r" on it, or take its parent (modal) w

Re: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Michael Ash
On Wed, Nov 12, 2008 at 1:37 PM, Russ <[EMAIL PROTECTED]> wrote: >>It might be that your application doesn't use NSApplicationMain() as the >>program starting point.This > function is responsible for initializing stuff and loading the main > bundle's main nib file as specified in the Info.plist fi

RE: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Etienne Guérard
NSApplicationMain basically does the following: [NSApplication sharedApplication]; [[NSBundle mainBundle] loadNibNamed:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSMainNibFile"] owner:NSApp]; [NSApp run]; EG -Original Message- >It might be that your application doesn't use NSAp

Re: Cora Animation transormation

2008-11-12 Thread Matt Long
I'm not sure exactly what you are wanting, but if you need to get the current value of an animated property while 'in-flight', you can get the layer's presentationLayer field and check the field there instead. Also, you should keep in mind that using the fillMode and setting the animation t

Re: tableView:objectValueForTableColumn:row not being called

2008-11-12 Thread Andy Lee
On Nov 12, 2008, at 11:45 AM, David Blanton wrote: Thanks for the suggestions ... Try setting both the table view's dataSource and delegate to nil before you set them to the new values. If that doesn't work, delay some of those messages using - performSelector:withObject:afterDel

Re: Mysterious warning [SOLVED]

2008-11-12 Thread Michael Ash
On Wed, Nov 12, 2008 at 6:30 AM, Graham Cox <[EMAIL PROTECTED]> wrote: > > On 12 Nov 2008, at 10:20 pm, Graham Cox wrote: > >> I just added some fairly old C++ lex/bison code to my app, code that has >> been in use for a long time elsewhere and works fine. My app is compiling >> with much stricter

Blue default button style hangs.

2008-11-12 Thread Russ
I'm trying to get the blue default button style to show up. It's NSMomentaryPushInButton with NSRoundedBezelStyle. I have it set as InitialFirstResponder. Works fine to start with. But if I setKeyEquivalent:@"\r" on it, or take its parent (modal) window and setDefaultButtonCell:[btn cell] on it

Re: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Russ
>It might be that your application doesn't use NSApplicationMain() as the >program starting point.This function is responsible for initializing stuff and loading the main bundle's main nib file as specified in the Info.plist file. Correct, I do not use it. Use NSApplication's sharedApplication an

Re: overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread mmalcolm crawford
On Nov 12, 2008, at 10:00 AM, Stuart Malin wrote: - (void) loadVew { contentView = [[UIImageView alloc] initWithFrame]; ... self.view = contentView; [contentView release]; ... } *If* this is exactly the code shown, and contentView is an instance

Re: tableView:objectValueForTableColumn:row not being called

2008-11-12 Thread Corbin Dunn
On Nov 12, 2008, at 9:45 AM, David Blanton wrote: Thanks for the suggestions ... Try setting both the table view's dataSource and delegate to nil before you set them to the new values. If that doesn't work, delay some of those messages using - performSelector:withObject:afterDe

MyDocument's Window Outlet...

2008-11-12 Thread Jean-Nicolas Jolivet
I noticed that, by default, when creating a new Document Based application, if you open the MyDocument's nib file, the FileOwner's object (i.e. MyDocument's instance) already has an outlet named "window" which is connected to my main document's window. However, it seems like it's impossible

Re: Foundation Tool with GC?

2008-11-12 Thread Bill Bumgarner
On Nov 12, 2008, at 9:30 AM, Karl Moskowski wrote: I've been working on a Foundation tool project with garbage collection, and I've been wondering, what's needed (besides making GC required in the Xcode project) to ensure the garbage collector actually does its thing. Is it enough to call

Re: overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread Luke the Hiesterman
Read up on the objective-c 2.0 language and the use of properties, specifically. This should help you understand what's going on here. What happens is that when you set self.view = contentView, the behind the scenes machinery is automatically sending a retain message to the object. This is

Re: Core Data + Unidirectional Relationships

2008-11-12 Thread Keary Suska
On Nov 12, 2008, at 6:38 AM, John Pannell wrote: subway stations all over town). Each station has two or more "port" entities (i.e. the openings in and out of the station), which each have one or more "pipe" entities (i.e. the tunnels that connect the stations to one another). A single p

overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread Stuart Malin
First: sorry if iPhone questions now belong elsewhere, but I am posting here because I want to validate my understanding of retain- release in the Cocoa context. I've just acquired the book "The iPhone Developer's Cookbook" by Erica Sadun. Her first "Hello World" example (listing 1-4, if yo

Re: How to draw whole NSImage inside custom rect in NSView

2008-11-12 Thread Alexander Shmelev
Thank you, I have multiplied all value by 1000. And it works. BR, Alexander. On 12.11.2008, at 2:30, Graham Cox wrote: On 12 Nov 2008, at 9:56 am, Alexander Shmelev wrote: Actually, I have one idea why this happens. Maybe because usually width=8, height = 14 so [self bounds] returns NSRe

Foundation Tool with GC?

2008-11-12 Thread Karl Moskowski
I've been working on a Foundation tool project with garbage collection, and I've been wondering, what's needed (besides making GC required in the Xcode project) to ensure the garbage collector actually does its thing. Is it enough to call objc_startCollectorThread() once in main()? Should I

Re: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Jean-Daniel Dupas
Did you had a look at the "nibless app" articles on Lap Cat's blog? http://lapcatsoftware.com/blog/2008/10/20/working-without-a-nib-part-7-the-empire-strikes-back/ Le 12 nov. 08 à 17:47, Russ a écrit : As I said, please save your typing on the "this is the wrong way" speech. This is an exist

RE: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Etienne Guérard
It might be that your application doesn't use NSApplicationMain() as the program starting point. This function is responsible for initializing stuff and loading the main bundle's main nib file as specified in the Info.plist file. EG -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

Re: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Russ
As I said, please save your typing on the "this is the wrong way" speech. This is an existing large cross-platform application, and like many other such, everything has been built elsewhere and is translated dynamically already, sans NIB. No way I'm going to rebuild and maintain a separate IB ve

Re: tableView:objectValueForTableColumn:row not being called

2008-11-12 Thread David Blanton
Thanks for the suggestions ... Try setting both the table view's dataSource and delegate to nil before you set them to the new values. If that doesn't work, delay some of those messages using - performSelector:withObject:afterDelay:, using a delay of .001. So I

Not turning off back light

2008-11-12 Thread Ignacio Enriquez
I hope this is the right place to ask this. As you know in iPhone OS when no touch is done for a determinated time the back light turns off.So, my question is. How can I tell iPhone OS not to turn off the back light when my app is running? Or how can I achieve not turning off the back light in iPh

Re: NSImage in NSAttributedString

2008-11-12 Thread Douglas Davidson
On Nov 12, 2008, at 3:34 AM, Timothy Larkin wrote: I am building an attributed string for display in a NSTextView. I can include an image in the string by attaching a file wrapper. But what if I have just an NSImage? I know that an image from the clipboard can be inserted in a text view.

Re: Process Priority

2008-11-12 Thread Mr. Gecko
Even that command says it's 0, so I'm thinking that virtual pc is using some unknown way of changing how much processor they use. A priority of 0 is the default unless a process was launched by a process that had a different priority, and then it would have that priority as well. I'm afra

Re: Cora Animation transormation

2008-11-12 Thread Fabrizio Guglielmino
Many thanksI've tried and it works but I still have a problem. If I made a second animation (rotation) of the image, after it's previous rotated, it seems to make this second animation using as starting point the original position of the image and not the rotated image, in this sense I was talk

Re: Cora Animation transormation

2008-11-12 Thread Matt Long
You need both of these lines when you create your animation: [animation setRemovedOnCompletion:NO]; [animation setFillMode:kCAFillModeForwards]; Here is a related blog post: http://www.cimgf.com/2008/10/25/core-animation-tutorial-slider-based-layer-rotation/ -Matt On Nov 12, 2008, at 7:57 AM

another best-practices question: separate delegates for controls?

2008-11-12 Thread Brian Williams
Hello, It seems that it could be dangerous (from a maintenance point-of-view) to use one object as the delegate for multiple controls. As new controls/delegate methods are added, it seems possible that you could inadvertently break existing control functionality. For example, it seems that

Cora Animation transormation

2008-11-12 Thread Fabrizio Guglielmino
Hi all, in a simple project I need to rotate about the Z vector a little image. I've used CAKeyframeAnimation with CATransform3DMakeRotation and it was really simple. My problem is about persistence of rotation, when animation end the image return in original position and this isn't what I want. I

Core Data + Unidirectional Relationships

2008-11-12 Thread John Pannell
Hi all- Looking for advice on the following scenario: consider an object graph made up of entities called "stations" (i.e. like subway stations all over town). Each station has two or more "port" entities (i.e. the openings in and out of the station), which each have one or more "pipe" e

Re: Drag Tabs, Custom Colors

2008-11-12 Thread Rainer Brockerhoff
At 17:21 -0800 11/11/08, [EMAIL PROTECTED] wrote: >From: "Kyle Sluder" <[EMAIL PROTECTED]> >References: <[EMAIL PROTECTED]> >In-Reply-To: <[EMAIL PROTECTED]> >Date: Tue, 11 Nov 2008 19:23:58 -0500 >Message-ID: <[EMAIL PROTECTED]> > >> 2. Is there any "easy" way to customize the colors used by Cocoa

Re: NSImage in NSAttributedString

2008-11-12 Thread Graham Cox
On 12 Nov 2008, at 10:34 pm, Timothy Larkin wrote: I am building an attributed string for display in a NSTextView. I can include an image in the string by attaching a file wrapper. But what if I have just an NSImage? I know that an image from the clipboard can be inserted in a text view.

Re: How can I use NSTextField like a button?

2008-11-12 Thread Ulf Dunkel
Hi Jean-Daniel. http://developer.apple.com/qa/qa2006/qa1487.html I have implemented this now, but I am stuck in another tiny issue right now. In my NIB file, I use an NSTextField with right alignment. When I use the described -setHyperlinkWithTextField:, the alignment is reset to left align

NSImage in NSAttributedString

2008-11-12 Thread Timothy Larkin
I am building an attributed string for display in a NSTextView. I can include an image in the string by attaching a file wrapper. But what if I have just an NSImage? I know that an image from the clipboard can be inserted in a text view. But how can I do this programatically? Is there a be

Re: Mysterious warning [SOLVED]

2008-11-12 Thread Graham Cox
On 12 Nov 2008, at 10:20 pm, Graham Cox wrote: I just added some fairly old C++ lex/bison code to my app, code that has been in use for a long time elsewhere and works fine. My app is compiling with much stricter warnings than many of my other projects though, and this line is throwing a w

Mysterious warning

2008-11-12 Thread Graham Cox
I just added some fairly old C++ lex/bison code to my app, code that has been in use for a long time elsewhere and works fine. My app is compiling with much stricter warnings than many of my other projects though, and this line is throwing a warning: lvalp->val = strtod( --wptr, &w

Re: Custom Drawing Arbitrarily Long Lists (using NSTableView?)

2008-11-12 Thread douglas welton
Check out NSCollectionView and NSCollectionViewItem. On Nov 11, 2008, at 2:20 PM, James Williams wrote: I'm working on a fairly simple application which will display a list of n items. Right now, I'm displaying the items in an NSTableView, but I would like to do something with a bit more pi

Re: How can I use NSTextField like a button?

2008-11-12 Thread Jean-Daniel Dupas
Le 12 nov. 08 à 11:28, Ulf Dunkel a écrit : I want to use some kind of URL text in a dialog, which the users can click on and which should then open the browser with a specific URL. Ron Fleckner pointed me to this helpful link: http://developer.apple.com/qa/qa2006/qa1487.html I have imple

Re: How can I use NSTextField like a button?

2008-11-12 Thread Ulf Dunkel
I want to use some kind of URL text in a dialog, which the users can click on and which should then open the browser with a specific URL. Ron Fleckner pointed me to this helpful link: http://developer.apple.com/qa/qa2006/qa1487.html I have implemented this now, but I am stuck in another tiny is