Re: making the NSScrollView align its subview to the top-left corner

2009-10-31 Thread Gustavo Pizano
Kyle, sorry to have bother. :P. I was really tired and I decided just to ask before lookign, sorry my bad. G. On Oct 30, 2009, at 10:57 PM, Kyle Sluder wrote: On Fri, Oct 30, 2009 at 2:53 PM, Gustavo Pizano wrote: Any ideas what Im missing? Did you perform a web search before asking the l

Re: making the NSScrollView align its subview to the top-left corner

2009-10-31 Thread Gustavo Pizano
Aha great, thanks G. On Oct 31, 2009, at 12:51 AM, Graham Cox wrote: On 31/10/2009, at 8:53 AM, Gustavo Pizano wrote: Any ideas what Im missing? The view contained by the scrollview needs to be flipped. Return YES from an override of -isFlipped. --Graham __

Double-clicking a screensaver

2009-10-31 Thread Gabriel Zachmann
I think I've seen screen savers that copy themselves to ~/Library/ Screensavers by double-clicking on the .saver file (that is still in the DMG). Could someone tell me how I can make my screensaver have this capability as well? Thanks a lot in advance. Best regards, Gabriel. smime.p7s

Re: Double-clicking a screensaver

2009-10-31 Thread Sherm Pendley
On Sat, Oct 31, 2009 at 10:19 AM, Gabriel Zachmann wrote: > I think I've seen screen savers that copy themselves to > ~/Library/Screensavers by double-clicking on the .saver file (that is still > in the DMG). > > Could someone tell me how I can make my screensaver have this capability as > well?

Re: Double-clicking a screensaver

2009-10-31 Thread Gabriel Zachmann
The system's screen saver app registered .saver as a document type, so that behavior happens automagically. You don't need to do anything besides create a normal .saver plugin from the standard template. I think, I'm doing that, but when I double click the .saver file, System Preferences star

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Fritz Anderson
On 30 Oct 2009, at 9:59 PM, Symadept wrote: I wanna show another image view in the bottom of the UITableView. Any pointers please. Add a section with no rows. Return your view as the header or footer view for that section. — F ___ Coco

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Luke the Hiesterman
No. Use the tableFooterView. That's what it's for. Luke On Oct 31, 2009, at 8:21 AM, Fritz Anderson wrote: On 30 Oct 2009, at 9:59 PM, Symadept wrote: I wanna show another image view in the bottom of the UITableView. Any pointers please. Add a section with no rows. Return your view as the

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Fritz Anderson
On 31 Oct 2009, at 10:26 AM, Luke the Hiesterman wrote: No. Use the tableFooterView. That's what it's for. Ouch. I'd been using the footer-in-void-section method for sections in the middle of tables. Was I wrong there as well? — F ___ C

Re: Double-clicking a screensaver

2009-10-31 Thread Sherm Pendley
On Sat, Oct 31, 2009 at 11:21 AM, Gabriel Zachmann wrote: >> The system's screen saver app registered .saver as a document type, so >> that behavior happens automagically. You don't need to do anything >> besides create a normal .saver plugin from the standard template. > > I think, I'm doing that

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Luke the Hiesterman
That's a little strange.why do that rather than using a footer view on an actual section? Luke On Oct 31, 2009, at 8:29 AM, Fritz Anderson wrote: On 31 Oct 2009, at 10:26 AM, Luke the Hiesterman wrote: No. Use the tableFooterView. That's what it's for. Ouch. I'd been using the footer

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Fritz Anderson
We may be talking at cross purposes. By "void section" I mean an actual section with no rows. — F On 31 Oct 2009, at 10:36 AM, Luke the Hiesterman wrote: That's a little strange.why do that rather than using a footer view on an actual section? Luke On Oct 31, 2009, at 8:29 AM

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Luke the Hiesterman
Yeah, I get thatI don't understand why you would create this void section just to display a footer view when you could simply display the footer view on a section that actually has rows. Since you said you're doing this in the middle of the table, I'm assuming there's a section with row

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Fritz Anderson
If you use a void section, you can reorder the sections and the custom (here footer) view with just a change in #defines. It seems cleaner to me. Am I just lazy? And does using an empty section produce any visual or functional difference? — F On 31 Oct 2009, at 10:39 AM, Luke the H

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Luke the Hiesterman
I won't go so far as to say that it's wrong. It just seems a little strange. As for the original poster's question about putting a view at the bottom of the table, though, there's no doubt that the tableFooterView property is the way to go. Luke On Oct 31, 2009, at 8:42 AM, Fritz Anderson

Re: iPhone: How to show another view on UITableView

2009-10-31 Thread Fritz Anderson
Absolutely. I'm glad (and chagrinned) it was drawn to my attention. — F On 31 Oct 2009, at 10:48 AM, Luke the Hiesterman wrote: As for the original poster's question about putting a view at the bottom of the table, though, there's no doubt that the tableFooterView property is the w

ToolBar Item problem

2009-10-31 Thread Michael de Haan
Hi all, I have reached a dead-end. A search as best I could of the archives and google does not throw light on this. (My favorite cocoabuilder seems to be on vacation :-) ) According to the documentation: http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/IB_User

Core Data Managed Object with Custom Data Caches

2009-10-31 Thread Richard Somers
I have custom data caches associated with a managed object. The documentation states didTurnIntoFault "method may be used to clear out custom data caches". So far so good. I was creating custom data caches in awakeFromFetch (or awakeFromInsert) until I realized that awakeFromFetch does not

RE: Cocoa bindings problem

2009-10-31 Thread Squ Aire
Thanks, why didn't I think of that? Sounds obvious once known :) Thanks also for the transient property tip, will keep it at the back of my head for future use. In this case however I will go with the method as it is more suitable in my particular case. > >Thanks for the tip. However, the valu

Re: Core Data Managed Object with Custom Data Caches

2009-10-31 Thread Dave Fernandes
You can create a custom accessor and re-create the cache if it is not present when the accessor is called. On 2009-10-31, at 12:05 PM, Richard Somers wrote: I have custom data caches associated with a managed object. The documentation states didTurnIntoFault "method may be used to clear ou

Re: Core Data Managed Object with Custom Data Caches

2009-10-31 Thread Jim Correia
On Sat, Oct 31, 2009 at 12:05 PM, Richard Somers wrote: > The documentation states didTurnIntoFault "method may be used to clear out > custom data caches". So far so good. > > I was creating custom data caches in awakeFromFetch (or awakeFromInsert) > until I realized that awakeFromFetch does not

Re: Core Data Managed Object with Custom Data Caches

2009-10-31 Thread Richard Somers
On Oct 31, 2009, at 10:12 AM, Jim Correia wrote: Typically you set up the baseline value in -awakeFromFetch. Is there a specific reason you need this to be undoable? When the managed object is removed, didTurnIntoFault is called and the custom data caches are deleted. When the user does an

Re: Core Data Managed Object with Custom Data Caches

2009-10-31 Thread Jim Correia
On Oct 31, 2009, at 12:25 PM, Richard Somers wrote: On Oct 31, 2009, at 10:12 AM, Jim Correia wrote: Typically you set up the baseline value in -awakeFromFetch. Is there a specific reason you need this to be undoable? When the managed object is removed, didTurnIntoFault is called and the

Re: Double-clicking a screensaver

2009-10-31 Thread Gabriel Zachmann
How old is "old"? Have you updated the project to create a universal binary? Snow Leopard is Intel-only, so its screen saver app isn't Sorry, about not writing more details. Well, the project is about 3-4 years old, and I have upgraded it with new XCode versions. Currently, I am compiling f

API for show event time as free/busy (iCal)

2009-10-31 Thread Nava Carmon
Hi, A new feature was introduced in iCal for Snow Leopard - show time as free/busy. I CANNOT find the according API in CalendarStore framework. DOES anybody know about the existence of such an API? Seems headers weren't updated from 10.5 to 10.6. If there another list, that might know the a

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-31 Thread David M. Cotter
hmm, that seems to be what i'm looking for, except i want to flash only once, and i want to be able to turn it on and off during the time the app is already launched. any ideas about that? if not, perhaps i need to use the "-getRectsBeingDrawn:count:" method and do it myself On Oct 30, 200

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-31 Thread Kyle Sluder
On Sat, Oct 31, 2009 at 10:55 AM, David M. Cotter wrote: > hmm, that seems to be what i'm looking for, except i want to flash only > once, and i want to be able to turn it on and off during the time the app is > already launched.  any ideas about that? > if not, perhaps i need to use the "-getRect

Re: nonsense from cellFrameAtRow:column: on Leopard

2009-10-31 Thread Matt Neuburg
Solved my own problem, which had nothng to do with what I thought it had to do with. The source of the difficulty is actually this: On Snow Leopard, [self controlView] works - it points from the NSCell to the NSMatrix that contains it. On Leopard, it doesn't work. I don't know why it doesn't work

Re: Double-clicking a screensaver

2009-10-31 Thread Nick Zitzmann
On Oct 31, 2009, at 10:37 AM, Gabriel Zachmann wrote: Is there anything wrong? Why do you have two different Deployment configurations with vastly different settings? Nick Zitzmann ___ Cocoa-dev mailing list (Coc

Re: Double-clicking a screensaver

2009-10-31 Thread Kyle Sluder
On Sat, Oct 31, 2009 at 11:46 AM, Nick Zitzmann wrote: > Why do you have two different Deployment configurations with vastly > different settings? One is probably the project, the other is the target. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-de

Re: Double-clicking a screensaver

2009-10-31 Thread Gabriel Zachmann
One is probably the project, the other is the target. You can see the whole project file at http://zach.in.tu-clausthal.de/tmp/project.pbxproj Best regards, Gabriel. smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing li

Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-31 Thread Russell Finn
On Wed, Oct 28, 2009 at 8:27 PM, Graham Cox wrote: > > On 29/10/2009, at 7:02 AM, Russell Finn wrote: > >> I'm pretty sure you got this backwards -- it's ObjectsAndKeys, not >> KeysAndObjects: >> >> attributes = [[NSMutableDictionary alloc] initWithObjectsAndKeys: >>      [NSFont fontWithName:@"He

Re: nonsense from cellFrameAtRow:column: on Leopard

2009-10-31 Thread Jim Correia
On Oct 31, 2009, at 2:34 PM, Matt Neuburg wrote: Solved my own problem, which had nothng to do with what I thought it had to do with. The source of the difficulty is actually this: On Snow Leopard, [self controlView] works - it points from the NSCell to the NSMatrix that contains it. On Le

Re: nonsense from cellFrameAtRow:column: on Leopard

2009-10-31 Thread matt neuburg
On Sat, October 31, 2009 12:49 pm, Jim Correia wrote: > On Oct 31, 2009, at 2:34 PM, Matt Neuburg wrote: > >> Solved my own problem, which had nothng to do with what I thought it >> had to >> do with. The source of the difficulty is actually this: On Snow >> Leopard, >> [self controlView] works - i

Rounded rect overlap in collection view

2009-10-31 Thread PCWiz
I'm using AMCollectionView (Code - harmless Cocoa, clone of NSCollectionView) to display a collection of views. In my prototype view subclass I have this: - (void)drawRect:(NSRect)dirtyRect { [[NSColor whiteColor] set]; NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:d

Re: Rounded rect overlap in collection view

2009-10-31 Thread Kyle Sluder
On Oct 31, 2009, at 1:10 PM, PCWiz wrote: - (void)drawRect:(NSRect)dirtyRect { [[NSColor whiteColor] set]; NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:dirtyRect xRadius:6.0 yRadius:6.0]; You're rounding the wrong rect here. You want the whole view frame, not the dir

Re: Rounded rect overlap in collection view

2009-10-31 Thread PCWiz
I tried drawing a rect around the whole frame like so: - (void)drawRect:(NSRect)dirtyRect { NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self frame] xRadius:6.0 yRadius:6.0]; [[NSColor whiteColor] set]; [path stroke]; [super drawRect:dirtyRect]; } ..a

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-31 Thread David M. Cotter
the point is i want to programmatically turn it on and off via my app's "debug" menu, so testers can see it without having to install the dev tools On Oct 31, 2009, at 11:23 AM, Kyle Sluder wrote: On Sat, Oct 31, 2009 at 10:55 AM, David M. Cotter wrote: hmm, that seems to be what i'm look

Re: Double-clicking a screensaver

2009-10-31 Thread Gabriel Zachmann
Can you post the project settings and all of the configurations? Even better, can you open the source and post the code to your favorite open source hosting site (if you haven't already done so)? Sure, you can download the complete source here: http://zach.in.tu-clausthal.de/software/ArtSa

Asynchronous downloading again

2009-10-31 Thread DKJ
I've got a series of data files that my app needs to download before the user can do anything. Because I want to have an activity indicator spinning while the download is in progress, I have to do asynchronous downloading. (Thanks to the list members who guided me to that epiphany.) So I'm

Re: Rounded rect overlap in collection view

2009-10-31 Thread Graham Cox
On 01/11/2009, at 8:17 AM, PCWiz wrote: I tried drawing a rect around the whole frame like so: - (void)drawRect:(NSRect)dirtyRect { NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self frame] xRadius:6.0 yRadius:6.0]; [[NSColor whiteColor] set]; [path stroke];

Re: Seemingly Documentation confusion?

2009-10-31 Thread Ken Thomases
On Oct 30, 2009, at 1:59 AM, Scott Anguish wrote: I’ve fixed these two docs. You’ll see them around turkey time. ... by which he presumably means the U.S. Thanksgiving holiday, November 26th this year. (In case anybody was confused. :) Cheers, Ken

Re: Double-clicking a screensaver

2009-10-31 Thread Bill Bumgarner
Related, I recently ported a handful of [really ancient NeXTSTEP] screensavers to Snow Leopard, including the ability to run on both 64 bit GC'd and 32 bit non-GC'd Snow Leopard or Leopard (ppc or i386). http://www.friday.com/bbum/2009/10/19/spiroscales-source-for-snow-leopard-available/ http://

Re: Asynchronous downloading again

2009-10-31 Thread Roland King
The whole point of doing things asynchronously is you don't have to care about waiting for one thing to do another thing, just set up two NSURLConnections and start them going at the same time. So unless you need some information from file 1 before starting on file 2 connection1 = [ [ NSUR

Re: SOLVED NSTextFieldCell subclass hobbles the field editor

2009-10-31 Thread Jonathan Fewtrell
I had forgotten to call super in copyWithZone:. Thanks to Andreas Schwarz for putting me right. On 29 Oct 2009, at 16:00, Jonathan Fewtrell wrote: I have a subclass of NSTextFieldCell as the dataCell of an NSTableColumn. When I click on the cell to edit the text, the field editor appears,

Re: Asynchronous downloading again

2009-10-31 Thread DKJ
All of the files have to be downloaded before the app can do anything. I get the connectionDidFinishLoading delegate method of my one and only NSURLConnection to call a downloadFinished method at the end of the synchronous downloads, so the app knows everything is in place and can start pro

Re: Asynchronous downloading again

2009-10-31 Thread Kyle Sluder
On Sat, Oct 31, 2009 at 6:50 PM, DKJ wrote: > I was worried that having a download connection for each file would make it > more complicated for the app to know when they were all finished. Translation: "I don't know how to do it correctly, and therefore fear it. I want to stick to what I know."

Re: Asynchronous downloading again

2009-10-31 Thread DKJ
I'm still not getting this. Why go to the trouble of setting up four separate NSURLConnections when one will do the job? And at the same time give me a very simple way to know when all the data is in place? If the files took a long time to download, I could see it. But these take less than

Re: Asynchronous downloading again

2009-10-31 Thread Roland King
So you've used the observation that your user interface element is animating a spin to decide that mixing synchronous and asynchronous calls is somehow causing things to happen on different threads; you're programming backwards. Also what you're doing here is making your app as slow as it c

Re: Asynchronous downloading again

2009-10-31 Thread Roland King
The trouble? Since you must already have the NSURLRequests then you're talking about the difference between [ [ NSURLConnection alloc ] initWithRequest:request delegate:self ] vs [ NSURLConnection sendSynchronousRequest:request returningResponse... ] don't see the extra troub

Firewall blocking check?

2009-10-31 Thread timm...@gmail.com
Does anyone know of a way to check programmatically if an app is being blocked by the firewall in 10.5 or 10.6? I know you could use ipfw or check the security plist in 10.4, but that doesn't work anymore. The only thing I could find is the com.apple.alf.plist, which can tell me if the fire

Re: Asynchronous downloading again

2009-10-31 Thread DKJ
On 2009-10-31, at 19:22 , Roland King wrote: You can trivially use one delegate to manage both these downloads, have them happen at the same time and only call downloadFinished when both of them have finished, or if you have more than 2, all 3, or 4 or 127 of them. What would be the best

Re: Asynchronous downloading again

2009-10-31 Thread Roland King
that's one way. Or have a boolean for each one which says when it's been downloaded, or put all the connections in an NSArray or some kind of dictionary and take each one out as it completes and call your routine when the NSArray is empty (don't start any of the connections until they are a

Re: Asynchronous downloading again

2009-10-31 Thread DKJ
On 2009-10-31, at 19:34 , Roland King wrote: . And why are you now talking about 4 NSURLConnections when you say you have 2 files? The 2-file example was a simplified case I posted when I was asking whether the method would work. I actually have half-a-dozen or so data files to download.

Re: Asynchronous downloading again

2009-10-31 Thread Claus Guttesen
> The 2-file example was a simplified case I posted when I was asking whether > the method would work. I actually have half-a-dozen or so data files to > download. (It can vary.) > > > Any suggestions about how to do all of this with multiple NSURLConnections > would be quite welcome. Elegant code

Re: Asynchronous downloading again

2009-10-31 Thread Ken Thomases
On Oct 31, 2009, at 11:19 PM, DKJ wrote: The 2-file example was a simplified case I posted when I was asking whether the method would work. I actually have half-a-dozen or so data files to download. (It can vary.) I'm using the delegate to save the files to disk under different names, so