[modeator] Re: #macdev/#iphonedev ban, in need of sympathy

2010-05-03 Thread Scott Anguish
Issues with IRC are not directly related to cocoa development and do not belong here. please take these issues elsewhere. On May 2, 2010, at 10:30 PM, Patrick M. Rutkowski wrote: I just got kick/banned from #macdev and #iphondev. I was asking an exceptionally complicated NSStream question

[modeator] Re: #macdev/#iphonedev ban, in need of sympathy

2010-05-03 Thread Scott Anguish
Having re-read your note, and noticed the language that was pointed out, you have been moderated on this list. This is not the appropriate location for such language. On May 2, 2010, at 10:30 PM, Patrick M. Rutkowski wrote: I just got kick/banned from #macdev and #iphondev. I was asking an

Re: [modeator] Re: #macdev/#iphonedev ban, in need of sympathy

2010-05-03 Thread Scott Anguish
and this is what I get for posting at 2:30 on a Sunday night I’m of course the [Moderator] not modeator. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: [iPhone] How to scroll to UITableView footer view

2010-05-03 Thread Scott Anguish
if by footer view, you mean content that is at the end of a table view, I suggest you read the UIScrollView Guide, specifically the issues regarding contentOffset. On May 2, 2010, at 11:14 AM, Scott Andrew wrote: What about making the rect your view's actual bounds. Something like...

Re: [iPhone] How to scroll to UITableView footer view

2010-05-03 Thread Scott Anguish
contentSize is the correct way to do this. It gives a ‘buffer zone’ at the top and bottom (and sides if you wish) on the scroll view. On May 1, 2010, at 11:04 PM, Luke the Hiesterman wrote: UITableView is a subclass of UIScrollView. So, you can ask for its contentSize and then call

Re: Strange NSScroller sizing behaviour

2010-05-03 Thread Jo Meder
Hi Bill, On 1/05/2010, at 6:19 AM, Bill Appleton wrote: hi anyone out there, i have more information on this scroll bar bug if i open more and more text windows the scroll bar (nsscroller) appears on the right or bottom of each one each window has 2 scroll bars, i have verified the 2

Re: Value Bindings in IB - Where's the documentation?

2010-05-03 Thread Brian Bruinewoud
Thanks, Ken, the CocoaBindingsRef is what I was looking for - now I'll see if I can work it out from there before looking at the other links you sent :) On 02/05/2010, at 20:27 , Ken Thomases wrote: On May 2, 2010, at 5:14 AM, Brian Bruinewoud wrote: I'm trying to find documentation about

IB Plugin Container View and child management

2010-05-03 Thread Patrick Mau
Dear list members I have created in IB Plugin based on the Xcode template and everything works fine. If you need the completly boring source to help me out I can upload the full project somewhere. Here's what I'd like to accomplish: I have a custom NSView subclass that is configured to be a

Re: Strange NSScroller sizing behaviour

2010-05-03 Thread Jo Meder
Hi, Further to my original post, I've done some more investigation. I wrote a pure Cocoa app (i.e. without my C++ UI framework code getting in the way) and still experienced the resizing problems. The problems seem to effect scrollers which are placed at the bottom or right edges of a window

Including UIImageView to Scroll down with UITableView

2010-05-03 Thread charisse napeÿfffff1as
Hello Guys, I have a View Controller that uses the UITableView delegate but then I want to place above the UITableView, a UIImageView but I can't seem to include it in the scrolling. When I try to scroll down, only the UITableView moves. Anybody knows how I can solve this problem? Thanks,

Re: Including UIImageView to Scroll down with UITableView

2010-05-03 Thread Luke the Hiesterman
Your explanation of what you are doing now is incredibly vague (what do you mean by placing a UIImageView above a UITableView?) but I assume the answer you're looking for is to set your image view as the tableHeaderView. It will then appear at the top of the table and scroll along with it.

NSTableView sort with a data source (silly question ?)

2010-05-03 Thread vincent habchi
Hi, this might be a silly question but, before doing any further implementation, and having found no definite answer, I dare ask it. Is there a way to sort the contents of a NSTableView whose data is provided by a data source, besides sorting at the source itself (via a suitable query)?

Re: NSTableView sort with a data source (silly question ?)

2010-05-03 Thread Graham Cox
On 04/05/2010, at 1:00 AM, vincent habchi wrote: Hi, this might be a silly question but, before doing any further implementation, and having found no definite answer, I dare ask it. Is there a way to sort the contents of a NSTableView whose data is provided by a data source, besides

Re: NSTableView sort with a data source (silly question ?)

2010-05-03 Thread vincent habchi
Le 3 mai 2010 à 17:08, Graham Cox a écrit : this might be a silly question but, before doing any further implementation, and having found no definite answer, I dare ask it. Is there a way to sort the contents of a NSTableView whose data is provided by a data source, besides sorting at the

Re: Compress / Uncompress

2010-05-03 Thread Michael Ash
On Sun, May 2, 2010 at 10:09 PM, k...@highrolls.net wrote: If a director is compressed in the Finder, and added to an app's resources, and the app wants to copy the compressed director to a location and uncompress the directory what is the  correct process. I have done unzip and uncompress

Help! (Help Book does not register)

2010-05-03 Thread David Reitter
I've got trouble (again) with the Help system... The Help system does not seem to register my Help Books. When trying to display the page with a specific anchor, I get Help Viewer cannot open this content., or it will show the same anchor in the Help Book of the same name in an earlier version

Re: NSPrintOperation Fails to Auto-Paginate?

2010-05-03 Thread David Duncan
On May 2, 2010, at 7:57 PM, DairyKnight wrote: I've been working on a tool to print an NSView to a PDF file. I followed Apple's documentation but couldn't get the auto-pagination work. The resulting PDF file is always long and one-page. Hope someone with relevant experience could help me. My

Re: IB Plugin Container View and child management

2010-05-03 Thread Kevin Cathey
Hi Patrick, Currently, there is no API to accomplish this. Please feel free to file an enhancement request. Kevin On 3 May 2010, at 05:33, Patrick Mau wrote: Dear list members I have created in IB Plugin based on the Xcode template and everything works fine. If you need the completly

Ticker Style Scrolling Text

2010-05-03 Thread Erik Benoist
I am writing a small NSStatusItem which displays a NSString in the menu bar and supplies a series of NSMenuItems. As the text to be displayed is occasionally longer than would be permitted on the Menu Bar I would like to animate the text in a Stock Ticker style scrolling animation. Much like

Re: CoreData in predicate

2010-05-03 Thread Frederick Reimer
The manuals for this give the following example: NSPredicate *inPredicate = [NSPredicate predicateWithFormat: @attribute IN %@, aCollection]; It looks like you are missing the attribute... If attribute can vary, you can use a %K and a NSString value representing the attribute name

Re: CoreData in predicate

2010-05-03 Thread Frederick Reimer
Unfortunately, there is nothing for the NSPredicate class to go on to assume what object you are talking about. predicateWithFormat is a class method/selector/function. What object is it supposed to assume you mean if one is not supplied? Dan Rowley sent me an email saying you may be able to

Re: CoreData in predicate

2010-05-03 Thread Frederick Reimer
Wrong assumption; you would actually use SELF in a format string, as it is a reserved word. So @SELF IN %@ I think... Fred Reimer, CCIE 23812 CISSP 107125 mailto:frei...@freimer.org On May 2, 2010, at 4:32 PM, Frederick Reimer wrote: Unfortunately, there is nothing for the NSPredicate

Scroll bars in CoreAnimation drawing model

2010-05-03 Thread Sam
Hi, I am developing a 32 out of process plugin for 64 bit safari using CAOpenGLLayer model(Core Animation). The plugin needs to create some scroll bars and buttons. Earlier in the Carbon event model using QD , I used NewControl to create them. What is the best way to create these controls in

PMSessionGetDocumentFormatGeneration

2010-05-03 Thread Shilpi Aggarwal
Hi All, I was using PMSessionGetDocumentGenerationFormat in one of my app earlier. I now want to port that app to 64 bit, but unfortunately I am not able to find any API that is supported on 64 bit with the same/similar functionality. Please refer

theme sets with NSUserDefaults

2010-05-03 Thread John Stoneham
Here's the scenario. In my (OS X) app's preferences, I'd like the user to be able select between sets of preference settings, and I'd like to be able to use NSUserDefaults for this without having to deal with extra plists. Here's an example to illustrate the idea. On the preferences page there is

Re: theme sets with NSUserDefaults

2010-05-03 Thread Jens Alfke
On May 3, 2010, at 6:59 AM, John Stoneham wrote: Here's an example to illustrate the idea. On the preferences page there is a combo box, where the user can pick a theme or enter the name of a new theme. The settings for the theme are some check buttons which have different states for the

Re: Help! (Help Book does not register)

2010-05-03 Thread Matt Neuburg
On Mon, 3 May 2010 11:28:27 -0400, David Reitter david.reit...@gmail.com said: I've got trouble (again) with the Help system... The Help system does not seem to register my Help Books. When trying to display the page with a specific anchor, I get Help Viewer cannot open this content., or it will

Re: Cocoa-dev Digest, Vol 7, Issue 496

2010-05-03 Thread Rick Mann
On May 3, 2010, at 11:55:33, Dan Rowley wrote: Yes, that's what I meant. self in %@. This would evaluate to true in any case where the object exists in the specified set. At least theoretically, as I'm not sure I understood your original question completely. :) I haven't actually tried

Re: Compress / Uncompress

2010-05-03 Thread koko
Thanks for the tips ... I will let you know the results when I get there ! -koko On May 3, 2010, at 9:17 AM, Michael Ash wrote: On Sun, May 2, 2010 at 10:09 PM, k...@highrolls.net wrote: If a director is compressed in the Finder, and added to an app's resources, and the app wants to

Re: Ticker Style Scrolling Text

2010-05-03 Thread Joachim Deelen
Hi Erik, I think one way to go would be CoreAnimation ... At least I'm using it in my iTunes Menubar Controller Playwatch. CATextLayer, CAScrollLayer and CABasicAnimation are the Classes that might be helpful. But CoreAnimation is rather complex. There might be ways to implement it with a

Re: Ticker Style Scrolling Text

2010-05-03 Thread douglas welton
Erik, If you haven't checked out Quartz Composer, do so. If my memory is correct, the QCTV sample code includes a news ticker that may be exactly what you are looking for. regards, douglas On May 3, 2010, at 3:59 PM, Joachim Deelen wrote: Hi Erik, I think one way to go would be

What happens after adding an object to a NSMutableDictionary

2010-05-03 Thread Dominic Dauer
Hello, I want to add an Object to a NSMutableDictionary: if(!parsedClasses) parsedClasses = [[NSMutableDictionary alloc] initWithObjectsAndKeys:oneClass,[oneClass objectAtIndex:0],nil]; else [parsedClasses setObject:[oneClass retain]

Re: What happens after adding an object to a NSMutableDictionary

2010-05-03 Thread Keary Suska
On May 3, 2010, at 2:39 PM, Dominic Dauer wrote: Hello, I want to add an Object to a NSMutableDictionary: if(!parsedClasses) parsedClasses = [[NSMutableDictionary alloc] initWithObjectsAndKeys:oneClass,[oneClass objectAtIndex:0],nil]; else

My program causes MacBook Pro to use NVidia graphics processor

2010-05-03 Thread Gideon King
Hi, I've had a query from a user of my software, and he says that when he runs it, his MacBook Pro switches to use the NVidia graphics chip. I haven't done anything in my program to specifically force that (and I'm not sure whether it is possible to in normal Cocoa code). Is there something

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-03 Thread Gideon King
Not particularly. I mean it is a graphics based program, but we don't have animations going on while the program is just sitting there, and we don't use any opengl or anything like that. Even when the user is interacting with it, it's just normal screen redraws - nothing I would have thought

Re: Selecting an object based on the value of one of its attributes

2010-05-03 Thread Lynn Barton
Roland, the application in question uses Core Data. To build a dictionary as you suggest, I will need to wait until the array controller loads its content, then iterate over all members of the array, putting the property in question and the array index into the dictionary. How can I know

Windows following the menubar in Cocoa

2010-05-03 Thread Eric Gorr
Using Xcode 3.1.3 (or 2.5), I created a standard Carbon application with a single document window. After running the application, I use the Display System Preferences to move the menubar from one display to another one. The document window for the Carbon application followed the menubar and

Re: Selecting an object based on the value of one of its attributes

2010-05-03 Thread Kyle Sluder
On Mon, May 3, 2010 at 3:24 PM, Lynn Barton lynnbar...@mac.com wrote: Roland, the application in question uses Core Data. To build a dictionary as you suggest, I will need to wait until the array controller loads its content, then iterate over all members of the array, putting the property in

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-03 Thread Jens Alfke
On May 3, 2010, at 2:46 PM, Gideon King wrote: Hi, I've had a query from a user of my software, and he says that when he runs it, his MacBook Pro switches to use the NVidia graphics chip. I haven't done anything in my program to specifically force that (and I'm not sure whether it is

Re: Windows following the menubar in Cocoa

2010-05-03 Thread Jens Alfke
On May 3, 2010, at 3:31 PM, Eric Gorr wrote: Using Xcode 3.1.3 (or 2.5), I created a standard Carbon application with a single document window. After running the application, I use the Display System Preferences to move the menubar from one display to another one. The document window for

Re: Windows following the menubar in Cocoa

2010-05-03 Thread Murat Konar
On May 3, 2010, at 3:31 PM, Eric Gorr wrote: Is there a way to configure a Cocoa window so it will follow the menubar to another display? Is it even a good idea? Seems like there's more to be done than just move a window (like maybe not moving it if it won't fit, resizing it etc). I'm

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-03 Thread Gideon King
He sends a system profile with the program running and another without it running. Without the program running, it is as follows: Graphics/Displays: NVIDIA GeForce GT 330M: Chipset Model: NVIDIA GeForce GT 330M Type: GPU Bus: PCIe PCIe Lane Width: x16 VRAM

Re: Ticker Style Scrolling Text

2010-05-03 Thread Erik Benoist
In regards to both of these (and especially the QC option). Would it be possible to add those to the NSMenu as with a setView? I'd like to avoid using setView to maintain backward compatibility, but if its the only way I can cut off anyone below 10.5 (when custom views were added to the

Re: Compress / Uncompress [solved]

2010-05-03 Thread koko
Tip o' the hat to Michael ... ditto is the tool for which I was looking ! -koko On May 3, 2010, at 9:17 AM, Michael Ash wrote: On Sun, May 2, 2010 at 10:09 PM, k...@highrolls.net wrote: If a director is compressed in the Finder, and added to an app's resources, and the app wants to

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-03 Thread Charles Srstka
On May 3, 2010, at 5:59 PM, Gideon King wrote: I see from Jens' reply, that I could try DYLD_PRINT_LIBRARIES, but it would perhaps not be very useful until I know what I am looking for, and we're not going to update the old version of the application anyway. If anyone does know if it is

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-03 Thread Gideon King
On 04/05/2010, at 10:14 AM, Charles Srstka wrote: If you posted the results to the list, it could be very useful, as someone may see something in there that they recognize. OK - in case it is useful, here are the results of running the app with that setting, and sorting the output and

Undo Action Message

2010-05-03 Thread Richard Somers
I have a core data document based application. The standard 'Undo' menu sends an 'undo:' action message to the first responder. The message is passed along the responder chain to the window's delegate which is an NSPersistentDocument instance and then apparently to the

Core Data Versioning: Non-trivial Value Expressions?

2010-05-03 Thread Jerry Krinock
When doing Core Data versioning, when creating a Mapping Model, when writing Custom Value Expressions, I understand that the syntax to be used is that described in the Predicate Programming Guide Predicate Format String Syntax. But I can't figure out how to do non-trivial mappings like

Re: Undo Action Message

2010-05-03 Thread Richard Somers
On May 3, 2010, at 7:25 PM, Richard Somers wrote: How does the 'undo:' action message actually get to the managed object context instance's 'undo' method? Just found the answer to my own question in the documentation. NSResponder does some behind the scenes message sending using more