Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Tommy Nordgren
On Feb 24, 2009, at 3:34 AM, Shawn Erickson wrote: On Mon, Feb 23, 2009 at 6:22 PM, Tommy Nordgren wrote: The following code will test if you are running from the DMG: NSString * volName = @"Mother"; NSString * appName = @"MyApp.app"; if ([[[NSBundle mainBundle] bundlePath] isEqualTo: [ NSS

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Tommy Nordgren
On Feb 24, 2009, at 4:53 AM, Kyle Sluder wrote: 5) Not just using the system-provided facilities to ask the direct question ("Is the volume on which this app's bundle resides removable?") but relying on aforementioned assumptions to ask an indirect question ("Does the path of the bundle of this

Re: Simple way to traverse 2D array?

2009-02-23 Thread Mark Ritchie
On 23-Feb-09, at 7:36 PM, Ashley Perrien wrote: I can't think of a way to nest the loops if I don't know how deeply to nest them. Hey Ashley! Thanks! This was a fun diversion while I take a break from looking for a gig! ;-) One solution is to use a second array which keeps the indices.

Disabled, auto-disappearing placeholder in search field like Safari, Console.app

2009-02-23 Thread Jerry Krinock
When I bind to an NSSearchField with option key=value pair NSNullPlaceholderBindingOption="Search names", indeed "Search names" is displayed in the search field whenever the bound keyPath is nil. But it appears as normal black text which the user must overtype. In contrast, the "Google" se

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2009 at 10:08 PM, Tommy Nordgren wrote: >        It will be /Volumes/Mother 1/...  I've tested. > This can be handled by using a regexp class for the matching instead of a > simple > equality test. >        Also, while it's possible to mount a disk image at other places than > unde

Re: Simple way to traverse 2D array?

2009-02-23 Thread Graham Cox
On 24/02/2009, at 1:21 PM, Ashley Perrien wrote: It's a bit unclear from your description if what you have is really a 3D array or a 2D array. Each of the combinations in your example output has three dimensions, not two. To recreate what I had described earlier: NSArray *numbers = [NSArr

Re: Getting CGImage out of NSBitmapImageRep in 10.4

2009-02-23 Thread Michael Ash
On Mon, Feb 23, 2009 at 4:51 PM, David Alter wrote: > I need to get a CGImage out of a NSBitmapImageRep. This needs to work in > 10.4. > I tried doing this by setting the bitmap as the graphics context and then > creating the image form the context. This gives me an CGBitmapContextCreate: > unsupp

Re: Stop edit session with a NSTextField

2009-02-23 Thread Michael Ash
On Mon, Feb 23, 2009 at 11:35 AM, Eric Gorr wrote: > I do find it odd that I could not tell the field editor to resign as first > responder. >From the documentation for -resignFirstResponder: "Notifies the receiver that it's been asked to relinquish its status as first responder in its window."

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Charles Srstka
On Feb 23, 2009, at 6:30 PM, Paul Sanders wrote: CrossOver Mac (from CodeWeavers) has a nice solution to the problem of users forgetting where they have put their applications. When the DMG is mounted, they pop up a box as shown here: http://www.alpinesoft.co.uk/forum_images/crossover_inst

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Tommy Nordgren
On Feb 24, 2009, at 3:34 AM, Shawn Erickson wrote: On Mon, Feb 23, 2009 at 6:22 PM, Tommy Nordgren wrote: The following code will test if you are running from the DMG: NSString * volName = @"Mother"; NSString * appName = @"MyApp.app"; if ([[[NSBundle mainBundle] bundlePath] isEqualTo: [ NSS

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Shawn Erickson
On Mon, Feb 23, 2009 at 6:22 PM, Tommy Nordgren wrote: > The following code will test if you are running from the DMG: > > NSString * volName = @"Mother"; > NSString * appName = @"MyApp.app"; > > if ([[[NSBundle mainBundle] bundlePath] isEqualTo: [ NSString > stringWithFormat:@"/Volumes/%@/%@",vol

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Tommy Nordgren
The following code will test if you are running from the DMG: NSString * volName = @"Mother"; NSString * appName = @"MyApp.app"; if ([[[NSBundle mainBundle] bundlePath] isEqualTo: [ NSString stringWithFormat:@"/Volumes/%@/%@",volName,appName]) { //Here you can show an alert telling the user

Re: Simple way to traverse 2D array?

2009-02-23 Thread Graham Cox
On 24/02/2009, at 11:36 AM, Ashley Perrien wrote: I'm hoping there's a simple way to do this or perhaps I can get some ideas on which direction to go. I've built a 2D NSArray of NSArrays. The primary array will be of variable length (usually less than 10) and the secondary arrays will also

reloading IKImageBrowserView in an IBAction

2009-02-23 Thread Claus Guttesen
Hi. I followed the excellent article 'Image Kit Programming Guide' at http://developer.apple.com/documentation/graphicsimaging/Conceptual/ImageKitProgrammingGuide/Introduction/chapter_1_section_1.html#//apple_ref/doc/uid/TP40004907-CH1-SW1 and have my ImageBrowser working. I want to use it as the

RE: Question on threads running in my Foundation tool

2009-02-23 Thread Josh Freeman
Hi, On Feb 22, 2009, at 9:35 AM, Charles E. Heizer wrote: The issue I'm seeing is that for every time I call NSThread so not to block the run loop it runs it's course but when it completes it leaves a hanging thread. So every 60 seconds I see an additional thread get added and never drops

(Almost)Newbie Question: Implementing / use a free available source code editor

2009-02-23 Thread Hans Stimul
Dear all, I am very new in Cocoa/ObjC development. I am software developer for more/less 7 years - but I did mostly web stuff and so I implemented the most with languages like java, php5(oop - as far as possible), ruby (on rails) or python. At the college, I did a lot of C/C++ development. So

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Nick Zitzmann
On Feb 23, 2009, at 5:51 PM, Ken Thomases wrote: A number of Mac apps are delivered in disk images configured that way. Firefox has already been mentioned. As I recall, we were also inspired by the disk image for Bare Bones' TextWrangler .

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Ken Thomases
On Feb 23, 2009, at 6:30 PM, Paul Sanders wrote: CrossOver Mac (from CodeWeavers) has a nice solution to the problem of users forgetting where they have put their applications. When the DMG is mounted, they pop up a box as shown here: http://www.alpinesoft.co.uk/forum_images/crossover_inst

Simple way to traverse 2D array?

2009-02-23 Thread Ashley Perrien
I'm hoping there's a simple way to do this or perhaps I can get some ideas on which direction to go. I've built a 2D NSArray of NSArrays. The primary array will be of variable length (usually less than 10) and the secondary arrays will also be variable, usually less than 5, but each one may

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Tommy Nordgren
Actually there is an easy way to find the apps runtime path: [[NSBundle mainBundle] bundlePath] You can extract the info from the returned string. On Feb 24, 2009, at 1:04 AM, Alex Kac wrote: Let me give you an example why I disagree with the advice. Yes, well written applications can run from

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Paul Sanders
CrossOver Mac (from CodeWeavers) has a nice solution to the problem of users forgetting where they have put their applications. When the DMG is mounted, they pop up a box as shown here: http://www.alpinesoft.co.uk/forum_images/crossover_installer.png Problem solved? - assuming you know how to

Re: iTunes like transition?

2009-02-23 Thread Graham Cox
On 24/02/2009, at 6:18 AM, Luca Pazzerello wrote: Maybe this screenshot clarifies about which transition i am talking about. http://a1.s3.quickshareit.com/immagine28d926.png Regards, -- Luca C. You could probably implement this by using either a text view or a view of your own design in

NSTextView Undo behavior

2009-02-23 Thread Randall Meadows
In my app's window there is an NSTextView, a place in which to enter notes associated with a selected object. Currently, when the user is finished editing those notes and switches to a different view (like clicking in another text area), I capture that edit session and store the new notes

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Joseph Crawford
I am not that experienced as a Mac Developer but I can give my thoughts as a switcher. When I first switched over to OS X a few years ago I thought it was odd that an application did not *need* to be installed rather copied to the Applications folder. It was obvious to me that I needed to

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Alex Kac
Let me give you an example why I disagree with the advice. Yes, well written applications can run from anywhere and all apps should! However its a user experience issue. Not everyone wants to write a pkg installer for a variety of reasons. So first here is a story. I have a friend I switche

Re: Help with recursive includes

2009-02-23 Thread Tommy Nordgren
On Feb 22, 2009, at 2:12 AM, Aaron Wallis wrote: While that's always an option, it's not exactly the answer I was hoping to hear :D The good news is I was able to recreate the file in a considerably smaller scale and have uploaded the source here: http://junk.isnot.tv/test.zip As you can

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Tommy Nordgren
On Feb 18, 2009, at 7:28 AM, Ben Lachman wrote: Hi all: I'm wanting to move away from DMGs to ZIP delivery. As part of this move I'd like to have my app, SousChef, prompt the user on first run to move itself to /Applications (or ~/Applications as appropriate). In a short search I can't

Re: Changing the height of a NSTextField for editing

2009-02-23 Thread Nate Weaver
Try setting the frame of the field/field editor instead (doing unit conversions if necessary). When you change the bounds of something explicitly, you end up changing the drawing transformation as well (see under setBounds: and friends). This has bitten me in the butt before (recently!). H

Getting CGImage out of NSBitmapImageRep in 10.4

2009-02-23 Thread David Alter
I need to get a CGImage out of a NSBitmapImageRep. This needs to work in 10.4. I tried doing this by setting the bitmap as the graphics context and then creating the image form the context. This gives me an CGBitmapContextCreate: unsupported parameter combination. Here is the code NSGraphicsContex

RE: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Jon C. Munson II
> > > > // generic > > NSManagedObject someObject = [NSEntityDescription insert...]; > > (anEntity *)someObject.attribute = @"somevalue"; > > Same here, I don't know if this must be seen as a bug or not. This > works for me : > > ((anEntity *)someObject).attribute = @"somevalue"; > >

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread I. Savant
On Mon, Feb 23, 2009 at 3:50 PM, Jon C. Munson II wrote: > I could not, however get this to work (and it may not be possible) with the > appropriate @class & #import: >(anEntity *)someObject.attribute = @"somevalue"; You really need to be specific here - I suspect that's one of the re

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Frédéric Testuz
Le 23 févr. 09 à 21:50, Jon C. Munson II a écrit : I meant: [(MyClassyClass *)obj doSomethingSpecificToMyClassyClass] The cast needs to be applied to the pointer - obj - and not to the returned value (outside the [ ] square brackets). -- I.S. [Jon C. Munson II] That made a difference.

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Wim Lewis
On Feb 23, 2009, at 12:50 PM, Jon C. Munson II wrote: I could not, however get this to work (and it may not be possible) with the appropriate @class & #import: (anEntity *)someObject.attribute = @"somevalue"; Is there a way to implement that methodology as well? I believe the prob

RE: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Jon C. Munson II
> > I meant: > > [(MyClassyClass *)obj doSomethingSpecificToMyClassyClass] > > The cast needs to be applied to the pointer - obj - and not to the > returned value (outside the [ ] square brackets). > > -- > I.S. [Jon C. Munson II] That made a difference. I took your literal word originall

Re: Question on threads running in my Foundation tool

2009-02-23 Thread Charles E. Heizer
Thanks for the plug. :-) I do appreciate it. Thanks, -charles On Feb 22, 2009, at 9:54 PM, Josh Freeman wrote: Hi, On Feb 22, 2009, at 9:35 AM, Charles E. Heizer wrote: The issue I'm seeing is that for every time I call NSThread so not to block the run loop it runs it's course but when it

Re: iTunes like transition?

2009-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2009 at 2:18 PM, Luca Pazzerello wrote: > Maybe this screenshot clarifies about which transition i am talking about. > http://a1.s3.quickshareit.com/immagine28d926.png That's not really a transition, it's just drawing. iTunes is a Carbon app, so it uses a different drawing model

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread I. Savant
On Mon, Feb 23, 2009 at 2:44 PM, Jon C. Munson II wrote: > Ahh, I see...I did think that's what he meant, but I needed further > clarification. > > I'll give that a shot... Well, while you're giving it a shot, keep in mind I made an error here: >> (MyClassyClass *)[obj doSomethingSpecificToMyC

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread mmalc Crawford
On Feb 23, 2009, at 11:43 AM, Jon C. Munson II wrote: On Feb 23, 2009, at 11:09 AM, Jon C. Munson II wrote: Feel free to show me the correct way as I don't see it in the dox.

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Quincey Morris
On Feb 23, 2009, at 11:09, Jon C. Munson II wrote: [Jon C. Munson II] Here's what I tried: NSManagedObject *someObject = [NSEntityDescription insert...]; someObject.attribute = @""; and also: NSManagedObject *someObject = [NSEntityDescription insert...]; [someO

RE: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Jon C. Munson II
Ahh, I see...I did think that's what he meant, but I needed further clarification. I'll give that a shot... Thanks! Peace, Love, and Light, /s/ Jon C. Munson II > -Original Message- > From: I. Savant [mailto:idiotsavant2...@gmail.com] > Sent: Monday, February 23, 2009 2:29 PM > To: jmu

RE: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Jon C. Munson II
> > On Feb 23, 2009, at 11:09 AM, Jon C. Munson II wrote: > > Feel free to show me the correct way as I don't see it in the dox. > > > es/cdUsingMOs.html > > > [Jon C. Munson II] Again, feel free to show me the corre

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread I. Savant
On Mon, Feb 23, 2009 at 2:28 PM, I. Savant wrote: > This isn't even Objective-C; it's just a pointer: Sorry, I was trying to be brief as I was responding from an iPhone. :-) What I meant was, it's not even *a matter of* Objective-C syntax. The pointer to your managed object subclass instance i

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread mmalc Crawford
On Feb 23, 2009, at 11:09 AM, Jon C. Munson II wrote: Feel free to show me the correct way as I don't see it in the dox. mmalc ___ Cocoa-dev mailing li

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread I. Savant
On 2/23/09, Jon C. Munson II wrote: > Kyle mentioned something about casting. While I know what certain casting > is, (int)i for example, I'm not sure what he meant. If he meant to include > the class header file and stipulate the class up front, etc., then I hadn't > done that as, again, the s

Re: iTunes like transition?

2009-02-23 Thread Luca Pazzerello
Maybe this screenshot clarifies about which transition i am talking about. http://a1.s3.quickshareit.com/immagine28d926.png Regards, -- Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

RE: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Jon C. Munson II
> > After some brief testing, if one creates entities of NSManagedObject > > thus: > > NSManagedObject *someObject = [NSEntityDescription insert...]; > > one most likely cannot use the dot syntax accessors [...] > > > This is not the case if you follow the patterns described in the > document

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread mmalc Crawford
On Feb 23, 2009, at 10:35 AM, Jon C. Munson II wrote: After some brief testing, if one creates entities of NSManagedObject thus: NSManagedObject *someObject = [NSEntityDescription insert...]; one most likely cannot use the dot syntax accessors [...] This is not the case if you follo

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2009 at 1:35 PM, Jon C. Munson II wrote: > You'll have to use KVC in that case. At least, I did. I tried both the dot > and standard accessor to be sure. You can usually cast the result yourself, since typically the entityName argument for +[NSEntityDescription insertNewObjectFo

RE: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Jon C. Munson II
> > > > > By calling -setValue:forKey: one can then fill in the data values > > for the required > > attributes. > > > The documentation makes clear that you should typically *not* use key- > value coding to set managed objects' attribute values: >

Changing the height of a NSTextField for editing

2009-02-23 Thread Eric Gorr
Here's a sample application demonstrating the problem: http://ericgorr.net/cocoadev/label/ItemDevLabel.zip When I click in the label, I start an editing session. However, the height of the label can contain two lines of text. When the editing session begins, I would like just a single line o

Re: Surprising entanglement of UI lock during fetch request in background thread (NSViewHierarchyLock/MOC locking deadlock). [POST SAD REALISATION]

2009-02-23 Thread Corbin Dunn
On Feb 21, 2009, at 1:49 AM, Luke Evans wrote: Well, for now we're moving to a main-thread only model for Core Data access (I've created a little 'inter-thread thunk' toolkit for invoking the previously offending MOC-mutating methods on the main thread). I'm still curious about how the "

Re: NSOutlineView : Incorrect Drag and Drop drawing?

2009-02-23 Thread Corbin Dunn
On Feb 21, 2009, at 3:08 PM, Iceberg-Dev wrote: I have a NSOutlineView and its highlight mode is "SourceList". When I drag a selected item (the cell is a subclass of NSTextField from the DargAndDropOutlineView sample code) from the list, its text is drawn in white. This means you can't see

Re: Populating a new SQLite Core Data store with default data

2009-02-23 Thread mmalc Crawford
On Feb 23, 2009, at 6:37 AM, Jon C. Munson II wrote: When the -insert method is called, Core Data creates an instance of a new object for an entity and returns a pointer to that object. [...] This is described in the documentation:

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Paul Kim
If I had been paying more attention, I could've intervened sooner. http://www.nightproductions.net/blog/2007/05/25/introducing-polish-a-new-framework/ Framework to do what the OP asked. My blog article, which prompted the whole thing, is linked from that page. You can see the comments there

Re: Stop edit session with a NSTextField

2009-02-23 Thread Eric Gorr
On Feb 23, 2009, at 11:01 AM, Patrick Mau wrote: On 23.02.2009, at 16:50, Eric Gorr wrote: I am not sure I understand this. Are you are saying is that you looked for the NSTextView being used as the field editor for the NSTextField and then removed the NSTextView from it's superview?

Re: Using a flip transition to a different view

2009-02-23 Thread Randall Meadows
On Feb 22, 2009, at 9:49 AM, David Hatch wrote: Hi, I'm writing an app that has a view that displays subviews to show information to the user. I would like the user to click a button and have the clicked sub view transition to a different view where the user can edit the information. I w

Re: Stop edit session with a NSTextField

2009-02-23 Thread Patrick Mau
On 23.02.2009, at 16:50, Eric Gorr wrote: I am not sure I understand this. Are you are saying is that you looked for the NSTextView being used as the field editor for the NSTextField and then removed the NSTextView from it's superview? I tried this: id fieldEditor = [[aNotification use

Re: Stop edit session with a NSTextField

2009-02-23 Thread Eric Gorr
On Feb 23, 2009, at 10:44 AM, Patrick Mau wrote: I had the same problem using a set of NSCell objects in one NSView. You could try: [[self window] endEditingFor:nil]; Unfortunately, that did not work. This is described as a last resort to abort editing in the NSWindow class reference. It'

Re: Stop edit session with a NSTextField

2009-02-23 Thread Patrick Mau
On 23.02.2009, at 16:20, Eric Gorr wrote: I manually start an edit session with a NSTextField after the user clicks in the field by doing the following: [snip] I can then alter the text in the field and press return. Once I press return, the delegate of the field does get a controlTex

Stop edit session with a NSTextField

2009-02-23 Thread Eric Gorr
I manually start an edit session with a NSTextField after the user clicks in the field by doing the following: [textField selectText:nil]; NSTextView *currentEditor = (NSTextView*)[textField currentEditor]; NSPoint windowLocation = [theEvent locationInWindow]

RE: Populating a new SQLite Core Data store with default data

2009-02-23 Thread Jon C. Munson II
For anyone following along, the following answers the question I had regarding adding "records" to a "table" using Core Data: > Thus (psuedo coded for brevity): > > someObject = [NSEntityDescription insertNewObjectForEntityForName:object inManagedObjectContext:moc]; > [someObject setValue:@"val" f

Re: Unexpected mouse-handling behaviour

2009-02-23 Thread Andy Lee
See NSView's hitTest: method. I believe you'll also have to use one or more of NSView's convertPoint... methods. Stepping back a bit, if you intend to significantly grow your app you should give it an MVC architecture -- have a model class that represents the structure and content of your

Re: [Q] Re: NSPersistentStore -addPersistentStoreWithType

2009-02-23 Thread Volker in Lists
Hi, i am usually happy with the quick check if a file exists and don't rely on any entity counts within the first view milliseconds of startup. If you have a fixed location (say URL), the check is really easy to implement. If you use a document based app, you have more elegant possibiliti

Re: Unexpected mouse-handling behaviour

2009-02-23 Thread Michael Ash
On Mon, Feb 23, 2009 at 8:45 AM, Manuel Meyer wrote: > Hmm, the endPoint and startingPoint are just helpers right now to visualize > the mouse interaction. I haven't done any coding on the vertices between two > Nodes yet. > I wanted to connect the Nodes without using the superview, but maybe I ha

Re: object wrapper for an opaque pointer

2009-02-23 Thread Roland King
*slaps head* thanks On Feb 23, 2009, at 10:10 PM, Graham Cox wrote: On 24/02/2009, at 1:06 AM, Roland King wrote: Is there a simple already-available wrapper for a void* I can use which doesn't even attempt to do any memory management [NSValue valueWithPointer:]; --Graham _

Re: object wrapper for an opaque pointer

2009-02-23 Thread Graham Cox
On 24/02/2009, at 1:06 AM, Roland King wrote: Is there a simple already-available wrapper for a void* I can use which doesn't even attempt to do any memory management [NSValue valueWithPointer:]; --Graham ___ Cocoa-dev mailing list (Cocoa-dev@

[Q] Re: NSPersistentStore -addPersistentStoreWithType

2009-02-23 Thread Jon C. Munson II
Namaste! I'm working on populating some entities with records just after when the physical file of the store is created (this would typically happen on install and generally only once). These records are generally for application use and won't be managed by the end user. In my app delegate's cl

object wrapper for an opaque pointer

2009-02-23 Thread Roland King
I want to make an NSArray type container to store some handles in, they're just void* c pointers. I don't need them managed in any way, I can deal with removing the handles from the NSArray before deletion and cleaning them up, I really just want to use an NSArray as a convenient place to d

NSUserCancelledError and the Dock

2009-02-23 Thread Gerriet M. Denkmann
I have a document based Cocoa app which uses: - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError This app checks the content of "absoluteURL" and if this content is not nice, shows a Panel: "Content of ... is not nice. Cancel - Open Anyway. When

Re: Unexpected mouse-handling behaviour

2009-02-23 Thread Manuel Meyer
Hmm, the endPoint and startingPoint are just helpers right now to visualize the mouse interaction. I haven't done any coding on the vertices between two Nodes yet. I wanted to connect the Nodes without using the superview, but maybe I have to? What is the best way to find out, what View(s) ar

iTunes like transition?

2009-02-23 Thread Luca Pazzerello
Hi all,Can someone help me to figure out how to make the transition iTunes uses to switch the artist - album of the playing song? Thanks, --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Paul Sanders
OK, thanks very much, I'll give it a go. My brain is full, currently, so I won't do it straightaway. As you say, I guess we're not in Kansas anymore. I'll start a new thread if I have anything useful to add. Rgds - Paul. - Original Message - From: "Andy Lee" To: "Paul Sanders" Cc:

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Andy Lee
On Feb 23, 2009, at 5:45 AM, Paul Sanders wrote: Thank you Andy, this looks useful. I can't *actually* get it to function (it will only inspect views contained within its own windows for some reason), but I'll talk to the F_Script guys about that. I took a look and realized I should have poi

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Paul Sanders
Thank you, I'm sure I'll find a use for both of these. I have seen the Technote in fact but had not read as far as the objective-C section. By 'set Type to Cocoa', I think you mean 'set Type to Objective-C'. 10/10 apart from that :) Thanks again - Paul. - Original Message - From: "K

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2009 at 5:45 AM, Paul Sanders wrote: > I'm also looking for a way to trace messages sent to the various objects > within my app, if anybody knows how to do that. Some sort of filtering > might be in order! Check out TN2124, Mac OS X Debugging Magic: http://developer.apple.com/tec

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Paul Sanders
Thank you Andy, this looks useful. I can't *actually* get it to function (it will only inspect views contained within its own windows for some reason), but I'll talk to the F_Script guys about that. I'm also looking for a way to trace messages sent to the various objects within my app, if anyb

Re: Relaunching App Programmatically - Terminal Window Shows up

2009-02-23 Thread Oleg Krupnov
Hi Daniel, Thanks! I have found a better approach though, IMHO. I pass the path to the application bundle and also the process ID as two args to the script ($1, $2). In result, I make sure that exactly the calling process is shut down, and exactly the same executable is relaunched. The only "proble

Re: Doc on Controller Content vs. Parameters in Interface Builder Bindings panel ?

2009-02-23 Thread mmalc Crawford
On Feb 22, 2009, at 11:54 PM, Guillaume Laurent wrote: I've googled around quite a bit but can't seem to find a full reference on all the settings of the Bindings panel in Interface Builder. In partic