Bug with QTCaptureLayer..........?

2009-01-21 Thread Anshul jain
I am trying to capture live video. For displaying live video i am using QTCaptureLayer. It works fine with a USB Camera but as soon as Firewire camera is use flickering starts happening. When i use the QTCaptureView it works fine. Any suggestion where i am going wrong or its a bug with QTC

Re: Telling the Help menu Spotlight search to ignore certain items

2009-01-21 Thread Eric Schlegel
On Jan 21, 2009, at 1:59 PM, Keith Blount wrote: So, my question is: is there a way of telling the Help menu to ignore certain menus when it does this search each time it is clicked on? No, there's no way to avoid indexing of your menus, sorry. Please file a feature request describing wh

Re: Distributed Objects

2009-01-21 Thread Michael Ash
On Wed, Jan 21, 2009 at 6:30 PM, David Blanton wrote: > On Jan 21, 2009, at 3:15 PM, David Blanton wrote: > >> Are distributed objects analogous to OCX in Windows? > > Of couse they are you idiot! > > In fact, since the Objective-c runtime is what supports distributed objects > and since Objective

Re: ImageAndTextCell rendering weirdness

2009-01-21 Thread Andrew Shamel
So, I still haven't had any luck figuring this problem out. However, upon reading through the code of the Source View example, I'm wondering if it has something to do with the fact that I'm using an NSTreeController bound to a Core Data structure with ImageAndTextCell. Source View uses an

Re: Custom Cocoa Component/Control

2009-01-21 Thread Paul Franz
Can a custom NSControl/NSCell combo be used in a normal NSView? Paul Franz Scott Ribe wrote: You probably need a custom NSCell subclass, and you'll set that to be the cell class used by the browser. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: NSScrollView Tiger v Leopard

2009-01-21 Thread Martin Wierschin
Add _tableScrollView to _browserScrollView Gah! Why? Why not? Because a scroll view only has one view you should be manipulating, the scroll view's document view: "NSScrollView instances provide scrolling services to its document view. This is the only view that an application must

Re: NSScroller buttons not scrolling?

2009-01-21 Thread Erik Buck
One possibility that answers the following question which is similar to yours: "When I drag the scroll bar, the view scrolls appropriately. When I click in the empty space beside the scroll bar, the view scrolls appropriately. When I click on the scroll arrows, they highlight, but the view d

[SOLVED] CAAnimation while modalForApp

2009-01-21 Thread David LeBer
On 21-Jan-09, at 6:23 PM, David LeBer wrote: I have a sign in window that implements a simple CAKeyframeAnimation to perform a shake if the sign in fails using the NSWindow's animator proxy object. i.e. [self setAnimations:[NSDictionary dictionaryWithObject:[self shakeAnimationWithNumb

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-21 Thread Adam Gerson
Hey Kyle, Thanks for the suggestion. Can you tell me more about this idea. It doesn't look like I can set an NSButton's NSButtonCell and NSButtonCell isn't a child of NSView so I can't draw it directly as a sub view. Once I have my sub class of NSButtonCell how do I render into onto the screen. T

Re: access programmatically the quartz composer image filters?

2009-01-21 Thread douglas welton
Michael, two things: 1) Check out the Quartz Composer Programming Guide. The section "Publishing Ports and Binding Them to Controls" takes about QC ports and how your program can communicate with active compositions 2) Check out the doc for the QCComposition class. One of the standar

NSScroller buttons not scrolling?

2009-01-21 Thread Nick Zitzmann
I tried searching the archives, and did see a few people asking something similar, but they were using an NSScroller without an NSScrollView. I am using an NSScroller inside a plain NSScrollView created using IB, and the scroll buttons highlight when clicked, but for some reason, the view d

Re: Distributed Objects

2009-01-21 Thread David Blanton
Of couse they are you idiot! In fact, since the Objective-c runtime is what supports distributed objects and since Objective-c runtime was around before OCX it is actually true that OCX is analogous to distributed objects! Voila! Another smash for NeXT / Apple against Windows! On Jan 21,

CAAnimation while modalForApp

2009-01-21 Thread David LeBer
I have a sign in window that implements a simple CAKeyframeAnimation to perform a shake if the sign in fails using the NSWindow's animator proxy object. i.e. [self setAnimations:[NSDictionary dictionaryWithObject:[self shakeAnimationWithNumber:4 duration:0.5f vigour:0.03f] forKey:@"fram

Re: Log4Cocoa

2009-01-21 Thread Barry Wark
On Wed, Jan 21, 2009 at 1:15 PM, Kyle Sluder wrote: > On Wed, Jan 21, 2009 at 2:58 PM, Robert Kukuchka wrote: >>I'm looking into logging frameworks and see references to this >> project. Does anyone know if this project is still running? I was hoping to >> find some examples of how to get

Re: Setting the result of a javascript function to NSString

2009-01-21 Thread Alex Mills
Hey Thanks Jean-Daniel Dupas, your 'untested' code works brilliantly! Really appreciate it man. Thanks to everyone else who helped with this topic. Cheers Alex Mills ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: Log4Cocoa

2009-01-21 Thread Robert Kukuchka
Apparently this Log4Cocoa project is based off of a Java project which is highly configurable. I'm trying to do an evaluation on the code from SF: http://sourceforge.net/projects/log4cocoa/ Files were updated in 08, but mailing list last updated in 06. Not sure if it's dead or what... On 2

Distributed Objects

2009-01-21 Thread David Blanton
Are distributed objects analogous to OCX in Windows? David Blanton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.app

Telling the Help menu Spotlight search to ignore certain items

2009-01-21 Thread Keith Blount
Hi, I've looked in the docs but I can't find the answer to this; I've also searched the archives but I may be using the wrong search terms. Under Leopard, when you click on the Help menu, before appearing it seems to search through all the menus of the app to see if any items match the term on

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Brooke Gravitt
On Wed, 21 Jan 2009 14:56:34 -0600 Alex Kac wrote: > Use the delegate I gave you and format it there. UITextField does not > accept formatters. Look at the docs - all the answers are right there. > Here is how I do it: > > Type in the class in the dev doc window. Set it to only show the > iPhone O

Re: Log4Cocoa

2009-01-21 Thread jonat...@mugginsoft.com
On 21 Jan 2009, at 21:40, Robert Kukuchka wrote: I was hoping to find something with built in log level support and non-recompile options to turn logging modules on / off On .NET you can accomplish this with the Enterprise Library Logging Application Block, which is very highly configurabl

Re: Log4Cocoa

2009-01-21 Thread Robert Kukuchka
It's better than NSLog(), but as I replied previously was looking for something with built in log level and ways to reconfigure logging without recompile On 21-Jan-09, at 1:23 PM, jonat...@mugginsoft.com wrote: On 21 Jan 2009, at 21:15, Kyle Sluder wrote: On Wed, Jan 21, 2009 at 2:58 PM, R

Re: Log4Cocoa

2009-01-21 Thread Robert Kukuchka
I was hoping to find something with built in log level support and non- recompile options to turn logging modules on / off On 21-Jan-09, at 1:15 PM, Kyle Sluder wrote: On Wed, Jan 21, 2009 at 2:58 PM, Robert Kukuchka wrote: I'm looking into logging frameworks and see references to this

Re: access programmatically the quartz composer image filters?

2009-01-21 Thread Matt Long
I don't know for sure the answer to whether or not the Quartz Composer filters are the same as what Core Image gives you, but I would bet they are. Have you seen this reference? http://developer.apple.com/DOCUMENTATION/GraphicsImaging/Reference/CoreImageFilterReference/Reference/reference.htm

Re: Log4Cocoa

2009-01-21 Thread jonat...@mugginsoft.com
On 21 Jan 2009, at 21:15, Kyle Sluder wrote: On Wed, Jan 21, 2009 at 2:58 PM, Robert Kukuchka wrote: I'm looking into logging frameworks and see references to this project. Does anyone know if this project is still running? I was hoping to find some examples of how to get things setu

Re: Log4Cocoa

2009-01-21 Thread Kyle Sluder
On Wed, Jan 21, 2009 at 2:58 PM, Robert Kukuchka wrote: >I'm looking into logging frameworks and see references to this > project. Does anyone know if this project is still running? I was hoping to > find some examples of how to get things setup. Anyone here use it within a > commercial ap

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Alex Kac
Use the delegate I gave you and format it there. UITextField does not accept formatters. Look at the docs - all the answers are right there. Here is how I do it: Type in the class in the dev doc window. Set it to only show the iPhone OS 2.2 docs. Contains. Full Text. It shows me immediately

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Nick Zitzmann
On Jan 21, 2009, at 3:48 PM, Brooke Gravitt wrote: This was what I was thinking I might do. Glen is correct, though; I was wrong about there being a formatter property on UITextField. You can still do this, but you'll have to apply the formatter manually using the UITextFieldTextDidChan

[WORKAROUND] Re: Cursor updates - bug or programmer ignorance?

2009-01-21 Thread Luke Evans
It shouldn't be necessary to do any cursorRects management if you're not using them yourself. Something is calling resetCursorRects (or a similar method), and NSScrollView is dutifully paying attention. I've played with subclassing NSScrollView and NSClipView, so as to suppress resetCurso

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Brooke Gravitt
On Wed, Jan 21, 2009 at 3:31 PM, Nick Zitzmann wrote: > > You could always attach the formatter manually, like this: (written in Mail, > untested, use at your own risk, and all that) > > - (void)awakeFromNib > { >NSNumberFormatter *formatter = [[[NSNumberFormatter alloc] init] > autoreleas

Re: "Show In Menu Bar" Option?

2009-01-21 Thread Peter Ammon
On Jan 21, 2009, at 10:34 AM, Chunk 1978 wrote: what is the proper way to update the menu bar after switching the view of the app's menu bar extension? force quit the SystemUIServer? or actually just quit the SystemUIServer? or is there a more common method to updating the menu bar? I thin

Re: Limiting NSTextField to numbers?

2009-01-21 Thread glenn andreas
On Jan 21, 2009, at 2:31 PM, Nick Zitzmann wrote: On Jan 21, 2009, at 3:06 PM, Brooke Gravitt wrote: The good news is I'm not a *complete* idiot, as it appears the option just isn't there for the iPhone/iTouch. Bad news is I *still* have no clue how to do what I'd like to. I'm going to dig

Re: "Show In Menu Bar" Option?

2009-01-21 Thread Seth Willits
On Jan 21, 2009, at 10:34 AM, Chunk 1978 wrote: what is the proper way to update the menu bar after switching the view of the app's menu bar extension? force quit the SystemUIServer? or actually just quit the SystemUIServer? or is there a more common method to updating the menu bar? Do what

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Nick Zitzmann
On Jan 21, 2009, at 3:06 PM, Brooke Gravitt wrote: The good news is I'm not a *complete* idiot, as it appears the option just isn't there for the iPhone/iTouch. Bad news is I *still* have no clue how to do what I'd like to. I'm going to dig into the docs again, but if anyone can clue-bat me i

Re: Number Formatter

2009-01-21 Thread Alex Kac
Ah, I was thinnking of Number Pad. But if you need Numbers and Punctuation, just implement the delegate textField:shouldChangeCharactersInRange:replacementString: and make sure the only characters are numbers. On Jan 21, 2009, at 2:13 PM, Brooke Gravitt wrote: On Wed, Jan 21, 2009 at 3:0

Re: Switching NSDocument based application to tabbed views interface

2009-01-21 Thread Fritz Anderson
On 21 Jan 2009, at 1:34 PM, jonat...@mugginsoft.com wrote: Googling with search terms of - NSDocument tabs site:www.cocoabuilder.com 109 hits, item 13 looks promising: Cocoabuilder - (Jacob Lukas) multiple documents, single window which in turn references CocoaDev: DocumentBasedAppWithOneWin

Re: Number Formatter

2009-01-21 Thread Brooke Gravitt
On Wed, Jan 21, 2009 at 3:04 PM, Alex Kac wrote: > Check the Numbers only flag in the IB palette. > So my options are ( if I'm looking in the right place ) on the Text Field Attributes tab on the inspector, Text Input Traits panel Keyboard Type: Default ASCII Capable

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Brooke Gravitt
On Wed, Jan 21, 2009 at 2:58 PM, Andy Lee wrote: > 3.1.2. But Alex Kac just posted a relevant note... I had no idea IB was > different for the iPhone/Touch. > > --Andy The good news is I'm not a *complete* idiot, as it appears the option just isn't there for the iPhone/iTouch. Bad news is I *s

Re: Number Formatter

2009-01-21 Thread Alex Kac
Check the Numbers only flag in the IB palette. On Jan 21, 2009, at 1:57 PM, Brooke Gravitt wrote: On Wed, Jan 21, 2009 at 2:50 PM, Alex Kac wrote: If you're on the iPhone, there is no IB formatters. I only mention that because of your comment about touch input. There we go! So any idea ho

Log4Cocoa

2009-01-21 Thread Robert Kukuchka
Hello, I'm looking into logging frameworks and see references to this project. Does anyone know if this project is still running? I was hoping to find some examples of how to get things setup. Anyone here use it within a commercial application? Our Mac team is small, so if I don't have to

Re: Number Formatter

2009-01-21 Thread Alex Kac
If you're on the iPhone, there is no IB formatters. I only mention that because of your comment about touch input. On Jan 21, 2009, at 1:21 PM, Brooke Gravitt wrote: On Wed, Jan 21, 2009 at 12:44 PM, Peter Hudson wrote: In IB in the Library panel, just below half way down there is a sym

Re: PDFView printing subviews

2009-01-21 Thread John Calhoun
On Jan 21, 2009, at 2:03 AM, Martin F. Carianni wrote: Now, this prints the PDFVIEW without the subview, prints just the model from the PDFDocument. As you observe, calling the print method in PDFView renders the PDF document ... not the PDFView content. If the PDF is a single page you ca

Re: Cursor updates - bug or programmer ignorance?

2009-01-21 Thread Quincey Morris
On Jan 21, 2009, at 10:49, Luke Evans wrote: I tried the trojan horse NSCursor subclass. The backtrace is: (gdb) backtrace #0 -[TraceCursor set] (self=0x13b5a0, _cmd=0x96c69d34) at /Users/ luke/Projects/TableTester/TraceCursor.m:24 #1 0x911d85ce in _handleInvalidCursorRectsNote () #2 0x93

Re: Switching NSDocument based application to tabbed views interface

2009-01-21 Thread jonat...@mugginsoft.com
On 21 Jan 2009, at 18:38, Fritz Anderson wrote: On 21 Jan 2009, at 9:42 AM, Ross Carter wrote: Can someone give me a hint how can I switch one window per document model (that currently works as expected thanks to NSDocument) to one tab per document, same window? This is answered in the a

Re: Cocoa-dev Digest, Vol 6, Issue 124

2009-01-21 Thread Brooke Gravitt
On Wed, Jan 21, 2009 at 12:44 PM, Peter Hudson wrote: > In IB in the Library panel, just below half way down there is a symbol > on the left hand side which is a dollar sign ( and a calendar symbol > next to it ) which is the number formatter. Click this and drag it > to the text field - and d

Re: runModalForWindow, best solution to modal session

2009-01-21 Thread Alexander Reichstadt
Hi Ken, On 17.01.2009, at 17:51, Ken Thomases wrote: On Jan 16, 2009, at 2:06 AM, Alexander Reichstadt wrote: @implementation KSingleItemSelectorController #pragma mark - #pragma mark Init+Dealloc + (id)selectItemUsingFenstertyp:(NSString *)aFenstertyp withComposition:(NSString *)aKomposit

Re: Cursor updates - bug or programmer ignorance?

2009-01-21 Thread Luke Evans
If you're devious enough, you might be able to set a breakpoint where NSScrollView is setting the cursor. (You could try, for example, to subclass NSCursor using an image you supply, with an override of setCursor: that just calls super. Then pass a cursor of your subclass to setDocumentCu

Re: CALayer animating images

2009-01-21 Thread David Duncan
On Jan 20, 2009, at 2:08 AM, Kishore Gedela wrote: Hi All, I'm working on a presentation application which will animate given images with a specified transition. I'm using CALayer to animate/ display the images. When animating/displaying large sized images I'm getting a white screen with

Re: Accessing interface elements (iPhone vs Mac)

2009-01-21 Thread Adam Venturella
I also just found this bit in the docs: http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_4.html#//apple_ref/doc/uid/1051i-CH4-SW18 Nib Object Retention iPhone OS - managed memory model Objects in the nib file are created with a retain cou

Re: Switching NSDocument based application to tabbed views interface

2009-01-21 Thread Fritz Anderson
On 21 Jan 2009, at 9:42 AM, Ross Carter wrote: Can someone give me a hint how can I switch one window per document model (that currently works as expected thanks to NSDocument) to one tab per document, same window? This is answered in the archives. Search cocoabuilder.com for document win

"Show In Menu Bar" Option?

2009-01-21 Thread Chunk 1978
what is the proper way to update the menu bar after switching the view of the app's menu bar extension? force quit the SystemUIServer? or actually just quit the SystemUIServer? or is there a more common method to updating the menu bar? ___ Cocoa-dev m

Re: Accessing interface elements (iPhone vs Mac)

2009-01-21 Thread Dave DeLong
On Jan 21, 2009, at 11:25 AM, Adam Venturella wrote: I have seen this same behavior too, creating @properties for IBOutlets on the iPhone. I have yet to run into a problem not @property/@synthsizeing my Outlets on the iPhone, everything seems to work just fine if you don't. So am I missing

Re: NSURLConnection changing the URL

2009-01-21 Thread Mohan Parthasarathy
On Tue, Jan 20, 2009 at 9:17 PM, Michael Vannorsdel wrote: > I've looked into this quite some time ago and have seen NSURLConnection > keep FTP and HTTP connections open even after the originating > NSURLConnection had been deallocated. The same connection was reused for > subsequent NSURLConnect

Re: Accessing interface elements (iPhone vs Mac)

2009-01-21 Thread Adam Venturella
Answered my own question re the dealloc here: Important: You are responsible for releasing the top-level objects of any nib files you load when you are finished with those objects. Failure to do so is a cause of memory leaks in many applications. After releasing the top-level objects, it is a good

Re: Accessing interface elements (iPhone vs Mac)

2009-01-21 Thread Adam Venturella
I have seen this same behavior too, creating @properties for IBOutlets on the iPhone. I have yet to run into a problem not @property/@synthsizeing my Outlets on the iPhone, everything seems to work just fine if you don't. So am I missing something? And am I correct in assuming you would then be

Re: Observing [NSWindow orderOut:] ?

2009-01-21 Thread Jim Correia
On Jan 21, 2009, at 1:12 PM, Shawn Erickson wrote: On Wed, Jan 21, 2009 at 10:04 AM, Matt Gough wrote: Are there any notifications that get sent when a window is ordered out (as opposed to closing)? I have a button subclass that needs to know when its parent window is hidden. I was hoping

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread mmalc Crawford
On Jan 21, 2009, at 9:27 AM, Kenneth Bruno II wrote: On Jan 21, 2009, at 12:04 PM, mmalc Crawford wrote: When I no longer need it I'll just call release on the object, this would most likely be done in the dealloc method of the class in which I initialized my object. As a general statement

access programmatically the quartz composer image filters?

2009-01-21 Thread Michael Hanna
I'd like to access programmatically the quartz composer image filters(just like it's done in the Automator script "Apply Quartz Composition Filter to Image Files). How do I do this? Are they really just CIFilters of a particular category? Michael ___ Co

Re: Observing [NSWindow orderOut:] ?

2009-01-21 Thread I. Savant
On Wed, Jan 21, 2009 at 1:04 PM, Matt Gough wrote: > Are there any notifications that get sent when a window is ordered out (as > opposed to closing)? I have a button subclass that needs to know when its > parent window is hidden. I was hoping that a [MyButton viewDidHide] override > would catch t

Re: Observing [NSWindow orderOut:] ?

2009-01-21 Thread Shawn Erickson
On Wed, Jan 21, 2009 at 10:04 AM, Matt Gough wrote: > Are there any notifications that get sent when a window is ordered out (as > opposed to closing)? I have a button subclass that needs to know when its > parent window is hidden. I was hoping that a [MyButton viewDidHide] override > would catch

Re: NSScrollView Tiger v Leopard

2009-01-21 Thread David Blanton
Why not? On Jan 21, 2009, at 10:54 AM, Kyle Sluder wrote: On Wed, Jan 21, 2009 at 11:48 AM, David Blanton wrote: Add _tableScrollView to _browserScrollView Gah! Why? --Kyle Sluder David Blanton ___ Cocoa-dev mailing list (Cocoa-dev@l

Observing [NSWindow orderOut:] ?

2009-01-21 Thread Matt Gough
Are there any notifications that get sent when a window is ordered out (as opposed to closing)? I have a button subclass that needs to know when its parent window is hidden. I was hoping that a [MyButton viewDidHide] override would catch these, but that isn't getting called when the window

Re: Accessing interface elements (iPhone vs Mac)

2009-01-21 Thread Shawn Erickson
On Tue, Jan 20, 2009 at 5:30 PM, Graham Cox wrote: > When the nib is loaded, the accessor is used rather than setting the ivar > directly (as per Mac) To be clear NIB loading on Mac OS X will use a setter if one exists (assuming a name match)... Outlet connections In Mac OS X, the nib-loading

Adjusting cursor in non-key Panel window

2009-01-21 Thread Matt Gough
I have an NSButton subclass which sets the cursor to the pointingHandCursor whenever the mouse is over it. This button is in an NSPanel (Utility-styled). @implementation PointingHandButton -(void)resetCursorRects { [self addCursorRect:[self bounds] cursor:[NSCursor pointingHandCursor]];

Re: NSScrollView Tiger v Leopard

2009-01-21 Thread Kyle Sluder
On Wed, Jan 21, 2009 at 11:48 AM, David Blanton wrote: > Add _tableScrollView to _browserScrollView Gah! Why? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Is there any mirroring in the Cocoa UI ?

2009-01-21 Thread Gary L. Wade
Not in the sense you get from the Windows platform whereby setting a flag on the parent window causes everything to automatically jump to the opposite side of the window and lay itself out right-to-left. Such alignment requires a different layout (NIB/code/etc.), although with controls like check

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Peter Hudson
In IB in the Library panel, just below half way down there is a symbol on the left hand side which is a dollar sign ( and a calendar symbol next to it ) which is the number formatter. Click this and drag it to the text field - and drop it on it. Once the formatter is applied to the text

Re: NSURLConnection changing the URL

2009-01-21 Thread Mohan Parthasarathy
Mike, On Tue, Jan 20, 2009 at 8:45 PM, Michael Ash wrote: > On Tue, Jan 20, 2009 at 7:49 PM, Mohan Parthasarathy > wrote: > >> Is there a way to not to allocate the connection everytime i need to > send > > a new request ? > > > > Yes. I'm pretty sure that the URL loading fr

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread Kenneth Bruno II
On Jan 21, 2009, at 12:04 PM, mmalc Crawford wrote: On Jan 21, 2009, at 7:07 AM, Kenneth Bruno II wrote: When I no longer need it I'll just call release on the object, this would most likely be done in the dealloc method of the class in which I initialized my object. As a general stat

Re: Limiting NSTextField to numbers?

2009-01-21 Thread CodingMammoth
Search for http://h4xr.org/59qy and drag-drop the left one into your NSTextField. Jelle On 21 Jan 2009, at 17:14, Brooke Gravitt wrote: On Wed, Jan 21, 2009 at 11:07 AM, I. Savant wrote: See NSNumberFormatter. Thanks for the RTFM. It looks like you can no longer get an NSNumberFormat

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Andy Lee
I haven't used a formatter myself, but I typed "formatter" in the search field of the Library window in IB, and it gave me three kinds of formatter object I could drag and drop, including NSNumberFormatter. --Andy On Jan 21, 2009, at 11:14 AM, Brooke Gravitt wrote: On Wed, Jan 21, 2009 at 1

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread mmalc Crawford
On Jan 21, 2009, at 7:07 AM, Kenneth Bruno II wrote: On Jan 21, 2009, at 9:23 AM, James Cicenia wrote: First of all, you probably should just use the localized list of month names that you can get through NSDateFormatter: NSDateFormatter *aFormatter = [NSDateFormatter new]; NSAr

Re: draw two strokes(lines) simultaneousy on NSView

2009-01-21 Thread Mark Barclay
Gami, To handle two input devices separately, as long as at least one of tehm is a tablet type of device (such as a Wacom tablet), you can etst the value of deviceId in the NSEvent that accompanies the mouseDragged, mouseDragged and mouseUp methods you override in your NSView subclass (assuming th

Re: Format float value to display with commas

2009-01-21 Thread Sanjay Samani
Tharindu, you need to look at NSNumberFormatter in Cocoa, which will be able to do this for you. Sanjay Samani DayTime Software http://daytimesoftware.com On 21 Jan 2009, at 11:59, Tharindu Madushanka wrote: Hi I have float variables that stores my currency values, I want to display thes

Strange behaviour UITableView

2009-01-21 Thread Fabrizio Guglielmino
Hi all, I have a UITableView where, sublcassing UITableViewCell, I made a custom cell. This custom cell is made of a UIImageView and some UILabel. This UITableView it's made with IB in a specific .xib with a custom UITableViewController as File's owner. I also need to make cell height custom so I'

NSScrollView Tiger v Leopard

2009-01-21 Thread David Blanton
Given an NSMatrix enclosing scroll view, _browserScrollView Given an NSTableView enclosing scroll view, _tableScrollView Add _tableScrollView to _browserScrollView [_browserScrollView addSubview:_tableScrollView]; When the user switches from NSMatrix to NSTableView run this code:

Is there any mirroring in the Cocoa UI ?

2009-01-21 Thread eric b
Hello the list, The idea is to use an application who needs RTL ( e.g. arabic or hebrew) and the question is : is there any mirroring in the UI ? After searching a while, we found no mention of that in the Aqua Human Interface Guideline. Thanks in advance for any hint :-) Eric Bachard

Re: Binding of invisible controls: is lazy data loading possible?

2009-01-21 Thread mmalc Crawford
On Jan 21, 2009, at 2:30 AM, Quincey Morris wrote: So this is not the only place that really needs just a little bit of clarifying wording. So just copy and paste what you just wrote into a bug report. mmalc ___ Cocoa-dev mailing list (Cocoa-de

Re: Limiting NSTextField to numbers?

2009-01-21 Thread Brooke Gravitt
On Wed, Jan 21, 2009 at 11:07 AM, I. Savant wrote: > See NSNumberFormatter. Thanks for the RTFM. It looks like you can no longer get an NSNumberFormatter from the Views pane in Interface Builder & wire it up as was ( recent? ) convention. Is there still a way to do this? I'm not even sure how

Re: Limiting NSTextField to numbers?

2009-01-21 Thread I. Savant
On Wed, Jan 21, 2009 at 10:40 AM, Brooke Gravitt wrote: > How do you prevent an NSTextField from accepting anything aside from > numbers? Or will I need to code up a solution to remove text from the > field automatically? Display a dialog & clear the contents? See NSNumberFormatter. -- I.S. __

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread Kenneth Bruno II
On Jan 21, 2009, at 9:07 AM, Kenneth Bruno II wrote: NSDateFormatter *aFormatter = [NSDateFormatter new]; NSArray *listOfMonthNames = [[aFormatter standaloneMonthSymbols] retain]; One small error here, I should have added this line after these two in order to properly release

Re: Switching NSDocument based application to tabbed views interface

2009-01-21 Thread Ross Carter
Can someone give me a hint how can I switch one window per document model (that currently works as expected thanks to NSDocument) to one tab per document, same window? This is answered in the archives. Search cocoabuilder.com for document window tabs ___

Limiting NSTextField to numbers?

2009-01-21 Thread Brooke Gravitt
How do you prevent an NSTextField from accepting anything aside from numbers? Or will I need to code up a solution to remove text from the field automatically? Display a dialog & clear the contents? Thanks, Brooke ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Setting the result of a javascript function to NSString

2009-01-21 Thread Mike Abdullah
WebKit has a full Obj-C DOM API which you can access starting at - [WebFrame DOMDocument] From there it should be fairly easy to locate your iframe and grab it's inner HTML. Mike. On 21 Jan 2009, at 13:56, Alex Mills wrote: Hey, The Javascript based editor is here http://www.alexmillsdesi

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread Scott Ribe
You just need to know basic C and follow the very simple rules and not needlessly complicate things. - initWithObjects gives a perfectly good (and already retained) array--there's no need to put it into a temp variable and then try to copy it - if listOfMonthNames is nil, then you would need to a

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread James Cicenia
Thanks that helped a lot and clarified something I suspected. James On Jan 21, 2009, at 9:07 AM, Kenneth Bruno II wrote: On Jan 21, 2009, at 9:23 AM, James Cicenia wrote: Here is some code I wrote for the appdelegate to initialize some dictionaries and arrays: My main question has to do wit

Re: Format float value to display with commas

2009-01-21 Thread Rob Boellaard
In addition to Kenneth Bruno's suggestion, there is also the Data Formatting guide: http://developer.apple.com/documentation/Cocoa/Conceptual/DataFormatting/DataFormatting.html hth, Rob On Jan 21, 2009, at 12:59 PM, Tharindu Madushanka wrote: Hi I have float variables that sto

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread Kenneth Bruno II
On Jan 21, 2009, at 9:23 AM, James Cicenia wrote: Here is some code I wrote for the appdelegate to initialize some dictionaries and arrays: My main question has to do with memory and releasing it. In my app I will need listOfMonthNames for my popups and will also need dictionaryOfProduceType

Newbie Memory Questions on a Code Fragment

2009-01-21 Thread James Cicenia
Hello - I am new to iphone and objective-c etc. Here is some code I wrote for the appdelegate to initialize some dictionaries and arrays: My main question has to do with memory and releasing it. In my app I will need listOfMonthNames for my popups and will also need dictionaryOfProduceTypes

Re: Setting the result of a javascript function to NSString

2009-01-21 Thread Jean-Daniel Dupas
Completly untested: NSString *content = [[myWebView windowScriptObject] evaluateWebScript :@"document.getElementById('box').contentDocument.body.innerHTML"]; And more info about Obj-C/JS integration at: http://developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/Tasks/JavaSc

Setting the result of a javascript function to NSString

2009-01-21 Thread Alex Mills
Hey, The Javascript based editor is here http://www.alexmillsdesign.com/Developer/FernEngine/Default.htm >From Cocoa I want to get the 'innerHTML' from the iFrame and store it in a >NSString. What would be the best way of accomplishing this? Cheers Guys, very much appreciated your help so fa

CALayer autoresizing behaviour

2009-01-21 Thread Joe Wildish
All, I'm having trouble getting a CALayer to resize automatically to fill its superlayer. I have the following code snippet: layer = [CALayer layer]; layer.layoutManager = [CAConstraintLayoutManager layoutManager]; layer.autoresizingMask = kCALayerWidthSizable | kCALayerHeightS

Re: Format float value to display with commas

2009-01-21 Thread Kenneth Bruno II
On Jan 21, 2009, at 6:59 AM, Tharindu Madushanka wrote: I have float variables that stores my currency values, I want to display these values in a string with commas at each 3 digits, can I do it with Objective C. I am new to the language. Please help me to solve this. For example, float ft

Format float value to display with commas

2009-01-21 Thread Tharindu Madushanka
Hi I have float variables that stores my currency values, I want to display these values in a string with commas at each 3 digits, can I do it with Objective C. I am new to the language. Please help me to solve this. For example, float ft = 12333.8905; NSString *strFloat = [NSString stringWithForma

Re: Store value of qc color picker in plist

2009-01-21 Thread Mike Abdullah
Well, pretty much as the message says, a colour object is unsuitable for inclusion in a property list. I suggest you instead serialise it to an NSData object using NSKeyedArchiver/Unarchive. Mike. On 21 Jan 2009, at 09:31, Jonathan Selander wrote: I use a QCCompositionParameterView to manip

Switching NSDocument based application to tabbed views interface

2009-01-21 Thread Vladimir Pouzanov
Hi all, I have a NSDocument based application, that seem to work ok for a case of one-two opened documents. However common usage pattern means, that an user would have 4-5 documents open at the same time requiring often use. I consider switching to tabbed interface model, but I'm somewhat

PDFView printing subviews

2009-01-21 Thread Martin F. Carianni
I've a PDFView (built in IB) with a loaded PDFDocument containing a form. I want to compile the form with a bunch of textfields already populated. PDFDocument *model = [[PDFDocument alloc] initWithData:[NSData dataWithContentsOfFile:@"/Users/neospiez/Desktop/model.pdf"]]; NSTextF

Document based application and drag & drop open

2009-01-21 Thread Domenico Testa
I'm writing a pyobjc document-based cocoa application, but i think my question relates to cocoa framework rather than on programming language, so i post it here. The application is a digital signature client that should be able to sign any file type producing a .p7m file. Apllication will support

Flickering while capturing Live Video...

2009-01-21 Thread Anshul jain
I am trying to capture live video through a fire wire camera. and for displaying live video i am using QCCaptureLayer. it works fine with a USB Camera but as soon as Firewire camera is use flickering starts happening. Any suggestion where i am going wrong or its a bug with QCCaptureLayer..

Re: Binding of invisible controls: is lazy data loading possible?

2009-01-21 Thread Quincey Morris
On Jan 21, 2009, at 01:11, mmalc Crawford wrote: It's not clear why this is any more satisfactory than the previous... It's just that the previous one appeared to be talking about what to implement, not what to call. *That* is only an issue because the main text at http://developer.appl

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-21 Thread jonat...@mugginsoft.com
On 21 Jan 2009, at 08:50, Jean-Daniel Dupas wrote: iTunes contains a full list of iPod icon (in iTunes.rsrc). Could it be responsible to set the iPod icon ? A convenient way to browse this resource is with ThemePark. Goto menu File - Open Special - iTunes.rsrc http://www.geekspiff.com/so

  1   2   >