Re: NSCollectionView problems

2008-05-23 Thread Markus Spoettl
On May 23, 2008, at 11:06 PM, Markus Spoettl wrote: For those interested, both issues go away if "Automatically Hide Scrollers" is switched OFF for the enclosing scroll view. I had scrollers switched off by default for esthetic reasons. Apparently NSCollectionView can't handle that case prop

Re: Query about Zip command

2008-05-23 Thread Adam R. Maxwell
On May 23, 2008, at 11:08 PM, Andrew Farmer wrote: On 23 May 08, at 21:22, parag vibhute wrote: But my requirement is to pass arguments to GUI apps while launching it & is it possible using Launch services? I will post my code of NSTask for launching GUI app in 1-2 days as my Mac is in offic

Re: Cleaning up a singleton

2008-05-23 Thread Andreas Mayer
Am 24.05.2008 um 08:07 Uhr schrieb Sebastian Nowicki: The library requires me to call a function which allocates memory to that global variable, and afterwards call a function which deallocates that memory. My singleton class calls the function to initialise in the init method, but I don't

Re: Query about Zip command

2008-05-23 Thread Andreas Mayer
Am 24.05.2008 um 08:08 Uhr schrieb Andrew Farmer: GUI applications generally do not take arguments - opened files are passed using Apple Events. Hence, Launch Services doesn't provide any way to pass arguments. You can use Apple Events yourself, though. See NSWorkspace's - launchAppWithBu

Re: Cleaning up a singleton

2008-05-23 Thread Andrew Merenbach
Hi, Would the following NSApplication methods, placed into your application delegate's code, help at all? - (void)applicationDidFinishLaunching:(NSNotification *)aNotification; - (void)applicationWillTerminate:(NSNotification *)aNotification; Of the latter, the docs say that one should "Put

NSURLConnection canHandleRequest: succeeds even with no network

2008-05-23 Thread Mike
Why does [ NSURLConnection canHandleRequest: ] return YES even if I turn off all my network connections? I thought this method was supposed to be used for preflighting connection requests? Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Query about Zip command

2008-05-23 Thread Andrew Farmer
On 23 May 08, at 21:22, parag vibhute wrote: But my requirement is to pass arguments to GUI apps while launching it & is it possible using Launch services? I will post my code of NSTask for launching GUI app in 1-2 days as my Mac is in office. GUI applications generally do not take arguments -

Cleaning up a singleton

2008-05-23 Thread Sebastian Nowicki
Hi, I have a bit of an odd problem, which may be the result of a bad design decision. My program wraps around a C library, which internally uses a global variable (structure) to manage things, and has functions to access the data. The library requires me to call a function which allocates

Re: NSCollectionView problems

2008-05-23 Thread Markus Spoettl
Hello again, On May 23, 2008, at 1:20 PM, Markus Spoettl wrote: I have an NSCollectionView set up with bindings to visualize an NSMutableArray. When I call arrayController:setContent: the view (which initially doesn't have a content assigned) displays the items. So far so good. The problem

Re: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]

2008-05-23 Thread Michael Nickerson
On May 23, 2008, at 5:19 PM, Sean McBride wrote: On 5/22/08 4:37 PM, Lynn Barton said: From what I have read quickly since Sean McBride sent his comment, UTIs are not yet implemented to the point where I could get the UTI of every file on my computer. Sure you can. Use LSCopyItemAttrib

Re: NSArray for (... in ...)

2008-05-23 Thread Quincey Morris
On May 23, 2008, at 21:17, Adam R. Maxwell wrote: It is documented to return elements in index order. From http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_7_section_1.html#/ /apple_ref/doc/uid/TP30001163-CH18 "For collections or enumerators that have a

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Bill Bumgarner
Nice graphs! On May 23, 2008, at 9:39 PM, Adam R. Maxwell wrote: I did some crude benchmarking a while back and found that NSFastEnumeration was roughly the same as using CFArrayGetValueAtIndex() in a loop, and both were faster than using NSEnumerator or -[NSArray objectAtIndex:]. The sig

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Bill Bumgarner
On May 23, 2008, at 9:19 PM, Graham Cox wrote: On 24 May 2008, at 7:34 am, Bill Bumgarner wrote: The NSEnumerator stuff is prone to introducing silly errors, is inefficient, and not very pleasant to look at. Can you go into more detail about the efficiency improvements? I do use a lot of NSEn

Re: Removing the Filename flag in Doc. based Application

2008-05-23 Thread Kyle Sluder
On Fri, May 23, 2008 at 11:06 PM, Roland King <[EMAIL PROTECTED]> wrote: > This seemed to me to be a good example of what's being discussed in the 'how > hard is Cocoa to learn' thread and is the kind of thing makes me pull my > hair out. To be fair, I think this the necessary foundation is pretty

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Adam R. Maxwell
On May 23, 2008, at 9:19 PM, Graham Cox wrote: On 24 May 2008, at 7:34 am, Bill Bumgarner wrote: The NSEnumerator stuff is prone to introducing silly errors, is inefficient, and not very pleasant to look at. Can you go into more detail about the efficiency improvements? I do use a lot o

Re: File's Owner

2008-05-23 Thread Andreas Mayer
Am 24.05.2008 um 03:55 Uhr schrieb Erik Buck: That is why File's owner exists! You just used File's Owner to make a connection to an object outside the nib. I thought, maybe a picture would help: http://www.harmless.de/images/other/files_owner.png On the left would be the scenario without

Re: Query about Zip command

2008-05-23 Thread parag vibhute
But my requirement is to pass arguments to GUI apps while launching it & is it possible using Launch services? I will post my code of NSTask for launching GUI app in 1-2 days as my Mac is in office. Thanks, Palav On 5/24/08, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Fri, May 23, 2008 at 2:13 PM

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Graham Cox
On 24 May 2008, at 7:34 am, Bill Bumgarner wrote: The NSEnumerator stuff is prone to introducing silly errors, is inefficient, and not very pleasant to look at. Can you go into more detail about the efficiency improvements? I do use a lot of NSEnumeration-based code and this *could* convi

Re: NSArray for (... in ...)

2008-05-23 Thread Adam R. Maxwell
On May 23, 2008, at 8:55 PM, Quincey Morris wrote: Incidentally, since the 'for (... in ...)' syntax got mentioned earlier today, I'm prompted to ask whether anyone has found a guarantee in the documentation (or in the header files, for that matter) that, when the object being fast-enumera

Re: Pasteboard question

2008-05-23 Thread Graham Cox
On 24 May 2008, at 6:36 am, Davide Scheriani wrote: [pboard declareTypes:[NSArray arrayWithObject:NSGeneralPboard] owner:self]; Wow. That's possibly one of the weirdest bits of code I've seen for a while :) Do read this: http://developer.apple.com/documentation/Cocoa/Conceptual/Copyan

NSArray for (... in ...)

2008-05-23 Thread Quincey Morris
Incidentally, since the 'for (... in ...)' syntax got mentioned earlier today, I'm prompted to ask whether anyone has found a guarantee in the documentation (or in the header files, for that matter) that, when the object being fast-enumerated is a NSArray, the contents are returned in array

Re: File's Owner

2008-05-23 Thread Jonathan Hendry
An example of multiple nibs where a nib's File's Owner wouldn't necessarily be NSApp would be System Preferences and the preferencepane bundles that it loads. NSApp would be SystemPreferences.app, and owns the main nib of the application. Each preference pane is an instance of NSPreferenc

Re: Query about Zip command

2008-05-23 Thread Stephen Hoffman
There might not be a framework, but there's full and portable C source code available. http://info-zip.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: Removing the Filename flag in Doc. based Application

2008-05-23 Thread Roland King
This seemed to me to be a good example of what's being discussed in the 'how hard is Cocoa to learn' thread and is the kind of thing makes me pull my hair out. If you hook things up with IB and write code you think it's quite simple, then you come to something like wanting to change the tit

Re: File's Owner

2008-05-23 Thread Scott Ribe
OK, maybe an example will help. Jason's point about File's Owner having more outlets and "more to do" in nibs other than MainMenu.nib is good. Assume you're writing some kind of database app. Assume you're creating a nib for the "contact entry" screen. Assume a nib for this screen with various con

Re: File's Owner

2008-05-23 Thread Andy Lee
On May 23, 2008, at 9:55 PM, Erik Buck wrote: What other objects outside the nib? I have nothing connected to File's Owner except the delegate, and looking at STOP. You just answered your own question. You connected the delegate outlet of an object outside the nib to some object within t

Re: File's Owner

2008-05-23 Thread Scott Ribe
> ...then it must be > difficult. Actually, no. It is so much simpler and more elegant a solution than other frameworks that people have difficulty comprehending precisely because they keep trying to make it more complex than it is. > Now if what they are trying to say is that I can bind a contro

RE: Safari-like padlock button in window title bar

2008-05-23 Thread Jim Matthews
At 8:08 PM -0400 5/20/08, Gary L. Wade wrote: I'm planning on doing something like this myself with one of my projects, and the way I plan on trying it out is by using: -(NSButton *)standardWindowButton:(NSWindowButton)b; for each NSWindowButton of the NSWindow, find a reasonable visual g

Re: File's Owner

2008-05-23 Thread Johnny Lundy
OK that's the first step towards saying what it is - the controller object that manages the corresponding user interface objects in the nib file. Now to find out what "managing" them means. This implies that NSApp is a "controller object" that manages the user interface objects in my nib fi

Re: File's Owner

2008-05-23 Thread Jason Stephenson
Hi, I think you might be making this harder than it needs to be because you are expecting the File's Owner of application's main nib file (usually MainMenu.nib) to require a lot of wiring up. Generally, it doesn't. File's Owner is used to link object from one nib to another. Since your main

Re: File's Owner

2008-05-23 Thread Erik Buck
On May 23, 2008, at 5:30 PM, [EMAIL PROTECTED] wrote: On May 23, 2008, at 2:49 PM, Johnny Lundy wrote: I decided to once again go verbatim through Cocoa Fundamentals. So far it has been largely "uh-huh, yep", but the File's Owner, my nemesis, comes up again. [deleted] Again, I'm sensing a very fun

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Michael Ash
On Sat, May 24, 2008 at 5:21 AM, glenn andreas <[EMAIL PROTECTED]> wrote: > While properties are nice, it's the "for each" thing that really is thing I > miss most when not working in ObjC 2.0... (if only the equivalent > NSEnumerator based loop were automatically generated in non ObjC 2.0) If yo

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
Based on your kindly giving me a precise reference I was able to remove a few unnecessary statements from my awake from nib. It now reads as follows: - (void) awakeFromNib { const CGFloat LargeNumberForText = 1.0e7; [[textView textContainer] setContainerSize:NSMakeSize(LargeNumberF

Re: File's Owner

2008-05-23 Thread Jonathan Hess
John - I'd like to be able to describe the concept of File's Owner and First Responder to people clearly. I don't think I would have described it any differently than Key Thomases did early today. I've copied his explanation below. Did you find Ken's explanation helpful? Jon Hess On May

Re: File's Owner

2008-05-23 Thread Johnny Lundy
On May 23, 2008, at 5:30 PM, [EMAIL PROTECTED] wrote: Message: 3 Date: Fri, 23 May 2008 16:55:13 -0400 From: Andy Lee <[EMAIL PROTECTED]> Subject: Re: File's Owner To: Cocoa-dev Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On May 23, 200

Re: Setting iTunes album art with ScriptingBridge

2008-05-23 Thread has
On 24 May 2008, at 01:22, Bill Monk wrote: Maybe the solution on Leopard is as simple as to stop trying to give it PICT (a requirement that's documented as much by folklore as anything) and use PNG instead. Yeah, all you can really do is experiment till you find something that works for

Re: Setting iTunes album art with ScriptingBridge

2008-05-23 Thread Bill Monk
On May 23, 2008, at 4:40 PM, has wrote: Looking at the two dumps, it's pretty obvious that what's coming back from iTunes isn't the same data as the original file; the latter actually looks like PNG data with a PICT file header Yes, I had noticed that. If an iTunes track already has artwor

Re: NSTableView

2008-05-23 Thread Lynn Barton
By a coincidence, I am working right now on an application using a NSTableView. Did your controller call [ directoryTable reloadData] to let the NSTableView that it needs to update the table? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: File's Owner

2008-05-23 Thread Johnny Lundy
Thank you. That is the crucial issue. If Aaron says people don't understand it, and I haven't understood it even after reading all three editions of his book plus the other two Cocoa books plus the Apple documentation many times, then it must be difficult. On May 23, 2008, at 6:17 PM, St

Re: File's Owner

2008-05-23 Thread Julien Jalon
On Sat, May 24, 2008 at 12:30 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > On Fri, May 23, 2008 at 11:17 PM, Steve Weller <[EMAIL PROTECTED]> wrote: > > > The hang up that I see is that this documentation give no clue as to the > > reason for File's Owner's existence. > > >From > http://developer

Re: Synching Animations Across CALayers

2008-05-23 Thread E. Wing
On 5/23/08, Dmitri Goutnik <[EMAIL PROTECTED]> wrote: > > On May 23, 2008, at 11:18 AM, Bridger Maxwell wrote: > >> Perhaps there is a way to see how far along the >> animation is for a given layer, and be able to make another layer >> synch to >> the same time. Surely this has to be possible. >> >

Re: Cover Flow in Cocoa?

2008-05-23 Thread Jonathan del Strother
On Fri, May 23, 2008 at 10:33 PM, Wayne Shao <[EMAIL PROTECTED]> wrote: > I am thinking to use Cover Flow in cocoa app. > > - Is this a good idea for a desktop/laptop app? > - What APIs are available? CoverFlow outside of iTunes? Terrible idea, it'll never take off. __

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Scott Ribe
> If I > want to do some Cocoa Networking, do I look at Cocoa > Networking, or > Networking > Cocoa? Either. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Errors from NSTreeController (or NSOutlineView?)

2008-05-23 Thread Hamish Allan
On Fri, May 23, 2008 at 11:11 PM, Brent Fulgham <[EMAIL PROTECTED]> wrote: > "unexpected state: found the same object more than once, but can't > find the treenode for it" > > I'm not sure if this: > a) indicates IP address conflicts that cause the same IP address to > attempt to be added multiple

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Sherm Pendley
On Fri, May 23, 2008 at 5:58 PM, has <[EMAIL PROTECTED]> wrote: > Sherm Pendley wrote: > > I think Apple is interested in making Cocoa in general more >> competitive, not just Objective-C. In fact, I suspect that their recent >> increased interest in supporting scripting bridges for Cocoa may be

Re: Errors from NSTreeController (or NSOutlineView?)

2008-05-23 Thread Kyle Sluder
On Fri, May 23, 2008 at 6:11 PM, Brent Fulgham <[EMAIL PROTECTED]> wrote: > I'm not sure if this: > a) indicates IP address conflicts that cause the same IP address to > attempt to be added multiple times This should not be causing you to add the same object more than once. Your model or controlle

Re: Core Data, transient properties and saving

2008-05-23 Thread Jonathan Dann
Thanks for the quick reply Ben and your explanation of what's going on. I've just re-read the Fetching section of the Core Data Programming Guide and its glaring at me not to fetch using transient attributes. I appreciate your help. Jon On 23 May 2008, at 22:32, Ben Trumbull wrote: As a s

Re: File's Owner

2008-05-23 Thread Hamish Allan
On Fri, May 23, 2008 at 11:17 PM, Steve Weller <[EMAIL PROTECTED]> wrote: > The hang up that I see is that this documentation give no clue as to the > reason for File's Owner's existence. >From >http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CoreAppArchitecture/chapt

Re: File's Owner

2008-05-23 Thread Steve Weller
The hang up that I see is that this documentation give no clue as to the reason for File's Owner's existence. What problem does it solve? Fundamentals mean nothing unless they read like a story: you have to give each thing a reason to exist so that the reader has a place to mentally hang

Re: How to capture data from NSImageView and display in NSView

2008-05-23 Thread Michael Vannorsdel
On May 23, 2008, at 3:32 PM, Stephen Herron wrote: The goal: A window with two views. The view on the left, NSImageView, displays the NSImage from - (void)openPanelDidEnd:. The right view, NSView, displays the result of a CIFilter using the pixel data displayed in the right-hand view. Th

Errors from NSTreeController (or NSOutlineView?)

2008-05-23 Thread Brent Fulgham
I've been playing with an outline view bound to an NSTreeController, based on the great SourceView example. My tree controller is populated with a tree of network devices, categorized by type. As things come on and off the network, entries are added to the appropriate category, and all works beau

Re: NSTextView without word wrap?

2008-05-23 Thread Jonathan Dann
Its in SMLViewMenuController.m line -(IBAction)lineWrapTextAction: Jon On 23 May 2008, at 22:58, David Carlisle wrote: Looks interesting. Thanks. DC On May 23, 2008, at 3:37 PM, Jonathan Dann wrote: You may also like to look at the source code to Smultron by Peter Borg. It's in there bu

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Steve Weller
The documentation is for the most part oriented around the implementation of the technologies offered (inside out view) rather than the solving of the challenged faced (outside in view). For experts this is no great barrier, because they are already arguably inside. But see how this trips

Re: How to tell if iTunes is running.

2008-05-23 Thread Nick Zitzmann
On May 23, 2008, at 4:01 PM, Mr. Gecko wrote: How can I tell if iTunes is running with cocoa. In this particular case, you should be able to get that information using -[NSWorkspace launchedApplications]... Nick Zitzmann _

Re: Cocoa-dev Digest, Vol 5, Issue 892

2008-05-23 Thread Julius Guzy
On 23 May 2008, at 22:31, [EMAIL PROTECTED] wrote: Message: 12 Date: Fri, 23 May 2008 14:18:04 -0700 From: "Shawn Erickson" <[EMAIL PROTECTED]> Subject: Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem) To: "Gerriet M. Denkmann" <[EMAIL PROTECTED]> Cc: Sc

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Sherm Pendley
On Fri, May 23, 2008 at 5:34 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote: > On May 23, 2008, at 3:49 PM, Sherm Pendley wrote: > >> The implementation of foreach appears almost expressly designed to better >> support scripting languages. The ObjC foreach() syntax is just chrome - >> the >> "fast"

How to tell if iTunes is running.

2008-05-23 Thread Mr. Gecko
How can I tell if iTunes is running with cocoa. I am working on a program for iTunes and I am going to add a Quit iTunes and Start iTunes menu. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread has
Sherm Pendley wrote: I think Apple is interested in making Cocoa in general more competitive, not just Objective-C. In fact, I suspect that their recent increased interest in supporting scripting bridges for Cocoa may be at least partly motivated by a need to compete with .NET's multi-lang

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Sherm Pendley
On Fri, May 23, 2008 at 5:21 PM, glenn andreas <[EMAIL PROTECTED]> wrote: > > While properties are nice, it's the "for each" thing that really is thing I > miss most when not working in ObjC 2.0... Sorry, I think I overstated things a bit with my "just chrome" comment. I certainly do like the ne

Re: Cover Flow in Cocoa?

2008-05-23 Thread Wayne Shao
On Fri, May 23, 2008 at 2:40 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > > On May 23, 2008, at 3:39 PM, Wayne Shao wrote: > > I never tried this on non-touch based devices. Not sure on the >> scrolling/selection experience. Any standard Apple apps with this interface? >> > > > Finder and iTune

Re: Cover Flow in Cocoa?

2008-05-23 Thread Nick Zitzmann
On May 23, 2008, at 3:39 PM, Wayne Shao wrote: I never tried this on non-touch based devices. Not sure on the scrolling/selection experience. Any standard Apple apps with this interface? Finder and iTunes both use cover flow. Nick Zitzmann __

Re: Setting iTunes album art with ScriptingBridge

2008-05-23 Thread has
Bill Monk wrote: The biggest issue with the album art is simply getting the image into PICT format, since last I checked, iTunes won't accept any other format. Unfortunately NSImage can read but not generate PICT. The only way I found to do it was to use QuickDraw APIs to create a GWorld, then

Re: Cover Flow in Cocoa?

2008-05-23 Thread Wayne Shao
Thanks, On Fri, May 23, 2008 at 2:37 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > > On May 23, 2008, at 3:33 PM, Wayne Shao wrote: > > I am thinking to use Cover Flow in cocoa app. >> >> - Is this a good idea for a desktop/laptop app? >> > > Why not? I never tried this on non-touch based dev

how to override image cell display in IKImageBroserView?

2008-05-23 Thread Wayne Shao
I want to overlay a small icon at the corner of each images in my browser view. The purpose of this is to provide a visual indicator of different properties in my images, which is better than putting some text in title/or subtitle. Is it possible without creating a new image representation for eac

Re: Cover Flow in Cocoa?

2008-05-23 Thread Nick Zitzmann
On May 23, 2008, at 3:33 PM, Wayne Shao wrote: I am thinking to use Cover Flow in cocoa app. - Is this a good idea for a desktop/laptop app? Why not? - What APIs are available? The only built-in one is private. You can make your own using CoreAnimation though; search your drive for th

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Bill Bumgarner
On May 23, 2008, at 3:49 PM, Sherm Pendley wrote: The implementation of foreach appears almost expressly designed to better support scripting languages. The ObjC foreach() syntax is just chrome - the "fast" comes from under the hood. It compiles down to a single method that's called to get a

Cover Flow in Cocoa?

2008-05-23 Thread Wayne Shao
I am thinking to use Cover Flow in cocoa app. - Is this a good idea for a desktop/laptop app? - What APIs are available? Thanks, -- Wayne Shao ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

re: Core Data, transient properties and saving

2008-05-23 Thread Ben Trumbull
As a summary, you can't fetch or sort against transient properties reliably. They don't exist in the persistent store (database). The in memory filtering will apply your predicate to any dirty objects to reconcile unsaved changes with the results from the persistent store. So saving the st

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Julius Guzy
On 23 May 2008, at 14:14, Steve Weller wrote: On May 23, 2008, at 5:56 AM, Julius Guzy wrote: I have done no analysis of what my learning problems were because I failed to keep a log. All I have to go on so far are vague memories of frustration with Interface Builder primarily but that

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread glenn andreas
On May 23, 2008, at 3:49 PM, Sherm Pendley wrote: The implementation of foreach appears almost expressly designed to better support scripting languages. The ObjC foreach() syntax is just chrome - the "fast" comes from under the hood. It compiles down to a single method that's called to get

Re: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]

2008-05-23 Thread Sean McBride
On 5/22/08 4:37 PM, Lynn Barton said: >From what I have read quickly since Sean McBride sent his comment, UTIs are >not yet implemented to the point where I could get the UTI of every file on >my computer. Sure you can. Use LSCopyItemAttributes() with kLSItemContentType. --

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Shawn Erickson
On Fri, May 23, 2008 at 9:19 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > So I > - entered "disc recording" into Xcode -> Help -> Documentation - nothing at > all ...talking about Xcode 2.5 in the following... Try changing Xcode to search documentation by "Full-Text Search" when you aren

RE: NSTableView

2008-05-23 Thread john darnell
Got it! Thank you! John -Original Message- From: Shawn Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 3:38 PM To: john darnell Cc: Cocoa-dev@lists.apple.com Subject: Re: NSTableView On Fri, May 23, 2008 at 1:22 PM, john darnell <[EMAIL PROTECTED]> wrote: > If I did ha

Re: Removing the Filename flag in Doc. based Application

2008-05-23 Thread Kyle Sluder
On Fri, May 23, 2008 at 12:33 PM, vince <[EMAIL PROTECTED]> wrote: > How do I set my document based application to omit the filename reference at > the top of each opened document window? It sounds like you need a little more education about how this works. NSDocument has a window outlet, but the

Re: File's Owner

2008-05-23 Thread Shawn Erickson
On Fri, May 23, 2008 at 1:27 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > So the real question you likely have is who is loading my nib? We can > only help answer that if you outline more about the nib and the code > involved. However as a guess I assume you are talking about > MainMenu.nib (de

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Gerriet M. Denkmann
On 23 May 2008, at 11:49, Ken Thomases wrote: On May 23, 2008, at 3:09 AM, Gerriet M. Denkmann wrote: I do seem to remember that there was something to write files and folders to a CDs using an Objective-C interface. - entered "disk" into AppKido - nothing except NSURLCache. - entered "disk

Re: File's Owner

2008-05-23 Thread Shawn Erickson
On Fri, May 23, 2008 at 1:27 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Fri, May 23, 2008 at 11:49 AM, Johnny Lundy <[EMAIL PROTECTED]> wrote: >> I can follow making a generic NSObject set to my custom class, but why >> File's Owner? > > You do this so Interface Builder knows what class th

Re: NSTextView without word wrap?

2008-05-23 Thread Douglas Davidson
On May 23, 2008, at 1:55 PM, David Carlisle wrote: I made some guesses at which statements to copy from BiScrollAspect.m and came up with the following awakeFromNib. I'm not sure which statements are the most relevant, and why, but it seems to do what I need. - (void) awakeFromNib {

Re: Synching Animations Across CALayers

2008-05-23 Thread Dmitri Goutnik
On May 23, 2008, at 11:18 AM, Bridger Maxwell wrote: Perhaps there is a way to see how far along the animation is for a given layer, and be able to make another layer synch to the same time. Surely this has to be possible. Haven't tried this myself but it should be possible to get current

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
I made some guesses at which statements to copy from BiScrollAspect.m and came up with the following awakeFromNib. I'm not sure which statements are the most relevant, and why, but it seems to do what I need. - (void) awakeFromNib { const CGFloat LargeNumberForText = 1.0e7; [[textV

Re: File's Owner

2008-05-23 Thread Andy Lee
On May 23, 2008, at 2:49 PM, Johnny Lundy wrote: I decided to once again go verbatim through Cocoa Fundamentals. So far it has been largely "uh-huh, yep", but the File's Owner, my nemesis, comes up again. I tried to answer your File's Owner and NSApp questions last week (copied below). If

Re: How to change Tool modes programmatically for a Image View?

2008-05-23 Thread Karl von Moller
Many thanks for this. I read through the documentation and some how missed this. I knew there had to be a simple answer and this works perfectly! Cheers Karl [myView setCurrentToolMode:IKToolModeSelect]; which can also be written as myView.currentToolMode = IKToolModeSelect; ___

Re: Pasteboard question

2008-05-23 Thread Shawn Erickson
On Fri, May 23, 2008 at 1:36 PM, Davide Scheriani <[EMAIL PROTECTED]> wrote: > helo guys. > I wanted to use the PasteBoard to use for may drag'n drop table view, > and I wish to save a mutable array i the pastboard. > I wrote this but I get "null" back: > > > = CODE

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Sherm Pendley
On Fri, May 23, 2008 at 9:34 AM, Gérard Iglesias <[EMAIL PROTECTED]> wrote: > Le 23/05/08 à 15:26, "Ilan Volow" <[EMAIL PROTECTED]> a écrit : > >IMHO Objective-C 2.0 looks like Apple's attempt to make Objective-C > >competitive with existing scripting languages, given the addition of > >the dot sy

Re: How to change Tool modes programmatically for a Image View?

2008-05-23 Thread Randall Meadows
On May 23, 2008, at 2:31 PM, Karl von Moller wrote: Posted this question last night and maybe it was missed by most??!! Hi, I'm trying to find out if it's possible to change the tool mode of an IKImageView's View programmatically? These are the tool modes provided by IKImageView's header fi

Pasteboard question

2008-05-23 Thread Davide Scheriani
helo guys. I wanted to use the PasteBoard to use for may drag'n drop table view, and I wish to save a mutable array i the pastboard. I wrote this but I get "null" back: = CODE = [pboard declareTypes:[NSArray arrayWithObject:NSGeneralPboard] owner:self]; NSMut

Re: NSTableView

2008-05-23 Thread Shawn Erickson
On Fri, May 23, 2008 at 1:22 PM, john darnell <[EMAIL PROTECTED]> wrote: > If I did have, say, three tables on a dialog, how would the code know > which function was for which table if that first element (or some other > element) is not differentiated? An example of one way to do it follows...

Re: NSTableView

2008-05-23 Thread Andrew Farmer
On 23 May 08, at 13:22, john darnell wrote: To be sure, my first attempt used that name, and it did not work. Obviously, I had more than one thing wrong with the code waay back then... I need to ask for just a little bit of clarification, however. Your last line says, "you can use that poin

RE: NSTableView

2008-05-23 Thread john darnell
Thanks for the feedback on my messages. I'll work to do better on the subject. And as you can see from other responses, your answer was correct (but you already know that). Take care, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Buck Sent: F

Re: Properties & GC (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Andy Lee
On May 22, 2008, at 11:21 PM, Bill Bumgarner wrote: The design goals of properties and GC were to make Cocoa developers more productive and to give Cocoa developers a better set of tools to take advantage of modern Macintosh hardware. That the technologies lower the barriers to entry is ce

Re: Cocoa et al as HCI usability problem

2008-05-23 Thread Andy Lee
On May 22, 2008, at 9:36 PM, Graham Cox wrote: On 23 May 2008, at 3:20 am, Andy Lee wrote: That may be, but that is different from demanding that Apple "lower the barriers" by changing Cocoa itself to resemble those platforms. I think many of the additions in Object-C 2.0 and the addition of

RE: How to change Tool modes programmatically for a Image View?

2008-05-23 Thread Karl von Moller
Posted this question last night and maybe it was missed by most??!! Hi, I'm trying to find out if it's possible to change the tool mode of an IKImageView's View programmatically? These are the tool modes provided by IKImageView's header file IKToolModeNone; IKToolModeMove; IKToolModeSelect;

Re: File's Owner

2008-05-23 Thread Shawn Erickson
On Fri, May 23, 2008 at 11:49 AM, Johnny Lundy <[EMAIL PROTECTED]> wrote: > I sent feedback on this as File's Owner is mentioned several times and not > defined. There seems to be some huge problem with File's Owner. Even Aaron > Hillegass says that people have trouble understanding File's Owner -

RE: NSTableView

2008-05-23 Thread john darnell
David: Thank you. That works. To be sure, my first attempt used that name, and it did not work. Obviously, I had more than one thing wrong with the code waay back then... I need to ask for just a little bit of clarification, however. Your last line says, "you can use that pointer to

Re: NSTableView

2008-05-23 Thread Brian Stern
On May 23, 2008, at 4:03 PM, john darnell wrote: The code meant to be used in response for the requirement in the Companion article to return the value of a given cell in the table looks like this: - (id) directoryTable: (NSTableView *) aTableView objectValueForTableColumn:(NSTableColumn *

NSCollectionView problems

2008-05-23 Thread Markus Spoettl
Hello List, I have an NSCollectionView set up with bindings to visualize an NSMutableArray. When I call arrayController:setContent: the view (which initially doesn't have a content assigned) displays the items. So far so good. The problems are these: If there are two many items for one

Re: Query about Zip command

2008-05-23 Thread Kyle Sluder
On Fri, May 23, 2008 at 2:13 PM, parag vibhute <[EMAIL PROTECTED]> wrote: > I tried using NSTask but it failed. I think NSTask is only useful to > launch plain unix exectuable (which does not resources, info.plist) This isn't strictly true (you were probably improperly using NSTask), but for launc

Re: NSTableView

2008-05-23 Thread Erik Buck
Your question was very good. My only criticism of the way you asked you question is the vague title of the post. Ask as many questions like this per day as you want. change the following: - (id) directoryTable: (NSTableView *) aTableView objectValueForTableColumn:(NSTableColumn *) aTableCo

Core Data, transient properties and saving

2008-05-23 Thread Jonathan Dann
Hi Guys, Has anyone come across this before? I've looked online and I think I know the problem but the solution is evading me! I have an NSManagedObject that represents a text file, the text itself is saved to a text file and the file's attributes are stored in the persistent store (much

NSTableView header offsets when scrolled

2008-05-23 Thread Ken Worley
Hi all, I've got a strange problem with a programatically created NSTableView (inside a programatically created NSScrollView). The table is showing three columns and has a standard header, each showing the title of the column. Columns are set to resize proportionally with the table. The p

  1   2   >