Re: Custom view controller

2008-11-05 Thread Raphael Sebbe
Binding to the file's owner has the side effect of retaining it. Owner owns the view, the view owns the owner through binding - this is a retain cycle. Another thing that may interest you is that top-level objects in a nib should be explicitly released when no NSWindowController is used to load

[iPhone dev]UIImagePickerController'view display nothing except a cancel button

2008-11-05 Thread Xianyu_Ge
hi, everyone, I have a very oddball thing. I used UIImagePickerController in my app, I choosed one photos ,show it and do something with image, then go back subviews of photos to select other photo. sometimes when I do that many times and go to first screen that show the category of all

Get the current frame and FPS of a video?

2008-11-05 Thread Jean-Nicolas Jolivet
I need to get the current frame of a QTMovie object... The movie object is assigned to a QTMovieView if this is of any help... If there's no easy way to get the current frame, I guess I could always calculate it using the currentTime method, which returns a QTTime struct... but without the

Re: Creating a Hyperlink in the UI

2008-11-05 Thread Nathan Kinsinger
On Nov 3, 2008, at 1:25 PM, development2 wrote: I need to create Hyperlink to the companies web site, but the link will be in a NSTextField. How do I create a hyperlink in this text field. I am sure it is something with NSMutableAttributedString but can't seem to figure it out. I though

Re: Creating a Hyperlink in the UI

2008-11-05 Thread Ron Fleckner
On 05/11/2008, at 9:42 PM, Nathan Kinsinger wrote: On Nov 3, 2008, at 1:25 PM, development2 wrote: I need to create Hyperlink to the companies web site, but the link will be in a NSTextField. How do I create a hyperlink in this text field. I am sure it is something with

Re: NSTableView

2008-11-05 Thread Graham Cox
On 5 Nov 2008, at 4:21 pm, Steven Riggs wrote: Thanks for the clarification Graham. It seems that retrieving data ordered (rows and columns) the same as the view is a common task. Apples solutions are pretty well thought out and encompassing so I was surprised there was not an easier way

Re: SecKeyGeneratePair export Public Key and OpenSSL API

2008-11-05 Thread Jacopo Mangiavacchi
Some more info. I obtained a persistence reference of an auto generated Public key calling the SecItemCopyMatching then I encoded it in base64 format. After that I added the strings BEGIN... at the top and END... at the bottom obtaining this final string an save it on a file:

Strange Build Error = [EMAIL PROTECTED]@_cls_refs

2008-11-05 Thread John Love
Can anyone tell me what the following means and what is the cause? I understand that it is a link error. Elsewhere, Graham Cox in replying to a similar problem by another poster stated This is a link error. Add the QuartzCore framework to your project. I did exactly that to no avail.

Re: Making a Window Class Invocable from Any Thread

2008-11-05 Thread Jerry Krinock
On 2008 Nov, 04, at 22:29, Chris Hanson wrote: I'd actually caution you against this. Keep your processing distinct from your user interface, don't mix the two. Use some form of intermediate status object to pass information back to your main thread for presentation to the user, rather

Wrapping of text around an image or shape.

2008-11-05 Thread Sandeep Nair
Hi All, I am trying to do text wrapping like pages app does. i added a View as subview of NSTextView. i want the text inside the TextView to wrap around the subview rect (as like in the pages app). for (glyphIndex = glyphRange.location; glyphIndex NSMaxRange(glyphRange); glyphIndex++) { NSPoint

Re: Wrapping of text around an image or shape.

2008-11-05 Thread Sandeep Nair
is there any sample code regarding this ??? On Wed, Nov 5, 2008 at 7:09 PM, Sandeep Nair [EMAIL PROTECTED]wrote: Hi All, I am trying to do text wrapping like pages app does. i added a View as subview of NSTextView. i want the text inside the TextView to wrap around the subview rect (as like

Re: Underlining text in Interface Builder

2008-11-05 Thread Graham Cox
On 6 Nov 2008, at 12:58 am, Adil Saleem wrote: I don't get it. If a user can not underline the text directly from interface builder, then why is the option given in the font window Because the Font Window is used all over the place, not just in IB. But yes, the Font Window is actually a

Re: Wrapping of text around an image or shape.

2008-11-05 Thread Graham Cox
On 6 Nov 2008, at 12:39 am, Sandeep Nair wrote: Hi All, I am trying to do text wrapping like pages app does. i added a View as subview of NSTextView. i want the text inside the TextView to wrap around the subview rect (as like in the pages app). [] anyone suggest me the right method to do

Re: Get the current frame and FPS of a video?

2008-11-05 Thread douglas welton
Disclaimer: I am assuming that when you say current frame, you mean the current frame number relative to the beginning of the movie and not the image that represents the current frame... Add a Timecode track and use the related functions to get the counter value. Check out the sample

Re: Custom view controller

2008-11-05 Thread Cathy Shive
Hi Tom, Setting the view controller as the nib's 'file's owner' won't create the problem. The problem described in the documentation occurs when you have set up bindings between objects in that nib file and the 'file's owner' (your view controller). If you have done this, it could,

Re: Custom view controller

2008-11-05 Thread Tomaž Kragelj
Hi Raphael and Cathy - thanks both for your replies. I already implemented top-level objects relasing, that was simple (although the objects are not released because dealloc is not called...) - in fact my code is almoust identical to the one shown below. On the other hand I do bind an

Re: Underlining text in Interface Builder

2008-11-05 Thread Adil Saleem
I don't get it. If a user can not underline the text directly from interface builder, then why is the option given in the font window ?   Adil   --- On Tue, 11/4/08, Jonathan Hess [EMAIL PROTECTED] wrote: From: Jonathan Hess [EMAIL PROTECTED] Subject: Re: Underlining text in Interface Builder

Re: Wrapping of text around an image or shape.

2008-11-05 Thread Sandeep Nair
is there any sample code that permitting text to wrap around embedded graphics.. http://developer.apple.com/documentation/Cocoa/Conceptual/TextArchitecture/Concepts/CommonConfigs.html On Wed, Nov 5, 2008 at 7:17 PM, Graham Cox [EMAIL PROTECTED] wrote: On 6 Nov 2008, at 12:39 am, Sandeep

Re: Custom view controller

2008-11-05 Thread Cathy Shive
Hi Tom, The design from the posts is identical to the one I use for the non- NSViewController based view controllers that I have to use (for the same reason as you) - so it can still work for you :) The concepts are the same. You just have to deal with the extra issues that you're

Re: Custom view controller

2008-11-05 Thread Ken Thomases
On Nov 5, 2008, at 1:26 AM, Tomaž Kragelj wrote: My application should be tiger compatible, so I can't use NSViewController. I created a custom view controller class with similar interface albeit much simpler. However I am not sure about the following (taken from NSViewController

NSClassDescription Clarification

2008-11-05 Thread Carmen Cerino Jr.
I would like to take advantage of Key-Value Programming in my application. Utilizing key-value programming I would like the ability to iterate through all of my object's values or members. If I am understanding NSObject's documentation right, I need to implement a class description in order to get

Re: Forcing garbage collection, freeing up memory, thrashing

2008-11-05 Thread Raphael Sebbe
Hi, Just in case: did you invoke -[super finalize] in your own objects' -finalize? Raphael On Wed, Nov 5, 2008 at 1:20 AM, Bill Bumgarner [EMAIL PROTECTED] wrote: On Nov 4, 2008, at 3:51 PM, Sean McBride wrote: Thanks very much for your reply Bill. I'm afraid one of us is misunderstanding

Re: NSClassDescription Clarification

2008-11-05 Thread Jean-Daniel Dupas
Le 5 nov. 08 à 16:43, Carmen Cerino Jr. a écrit : I would like to take advantage of Key-Value Programming in my application. Utilizing key-value programming I would like the ability to iterate through all of my object's values or members. If I am understanding NSObject's documentation right, I

NSTimer issue

2008-11-05 Thread Daniel Luis dos Santos
Hello, I have an NSView derived class where I have to do some drawing inside NSRect. When pressing a start button, a timer is created with : + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)targetselector:(SEL)aSelector userInfo:(id)userInfo repeats:

Re: NSTimer issue

2008-11-05 Thread Devon Ferns
Does self implement the selector? It sort of sounds like you're passing it a selector implemented by a different class and not by whatever class is self in this instance. The selector should be implemented by the target. Devon Daniel Luis dos Santos wrote: In the target argument I pass

Re: NSTimer issue

2008-11-05 Thread Quincey Morris
On Nov 5, 2008, at 08:51, Daniel Luis dos Santos wrote: In the target argument I pass self, and as selector a method of the class in question. When update is called, the self object has the address I passed when creating the timer. Inside the method I call setNeedsDisplay: so the drawRect

Re: Underlining text in Interface Builder

2008-11-05 Thread James Walker
(Resend; I posted this yesterday but it hasn't shown up or bounced) Adil Saleem wrote: I am trying to underline a static text in Interface Builder (through fonts window), but it does not underline the text. I don't understand why. Any ideas ? Try this: 1. In the inspector, check Rich Text

Dual screen problems

2008-11-05 Thread Tverdokhleb Andrey
Hello all! Recently I've noticed that NSImage initialized from NSData with TIFF is not displayed properly on dual screen systems. One screen displays image correctly, but another one shows it completely wrong compared to the same image opened on the same screen in Photoshop f.e. Farther

Re: About Ink drawing with wacom tablet

2008-11-05 Thread Raleigh Ledet
Hi John, As a former Wacom OS X Software Engineer, I believe I can be of some assistance. There are 2 routes you can go. Easy and Hard. Easy: Just grab any pertinent tablet info out of the mouseDragged event. You can make sure that the mouse event has tablet data via [event subType] ==

Re: About Ink drawing with wacom tablet

2008-11-05 Thread Raleigh Ledet
Here are the following ways to see NSTabletPoint events (or - tabletPoint:) 1. Between the mouseDown: and first mouseDragged:. During this period of time, other tablet properties may be changing (such as pressure or tilt). Once the user moves the pen enough to move the cursor at least 1

Re: Underlining text in Interface Builder

2008-11-05 Thread Adil Saleem
Thank you very much. It solved my problem. About my earlier mail on the topic, i was under the impression that it isn't directly possible to underline text directly from Interface Builder. However, this solution suggested by Mr. Walker works. So now i think, the confusion no longer exists

Re: About Ink drawing with wacom tablet

2008-11-05 Thread john chen
Raleigh, Thanks a lot for your suggestion. I have already tried the easy route, it works, but people is not happy with that since when the pen is outside the view, it won't draw on it. It's hard for user to keep the pen inside the view. That is why I am looking for a better solution. So it sounds

Re: Dual screen problems

2008-11-05 Thread I. Savant
On Wed, Nov 5, 2008 at 2:03 PM, Tverdokhleb Andrey [EMAIL PROTECTED] wrote: Recently I've noticed that NSImage initialized from NSData with TIFF is not displayed properly on dual screen systems. One screen displays image correctly, but another one shows it completely wrong compared to the same

Re: Dual screen problems

2008-11-05 Thread Tverdokhleb Andrey
On Nov 5, 2008, at 11:35 , I. Savant wrote: On Wed, Nov 5, 2008 at 2:03 PM, Tverdokhleb Andrey [EMAIL PROTECTED] wrote: Recently I've noticed that NSImage initialized from NSData with TIFF is not displayed properly on dual screen systems. One screen displays image correctly, but another

Re: Dual screen problems

2008-11-05 Thread I. Savant
On Wed, Nov 5, 2008 at 2:57 PM, Tverdokhleb Andrey [EMAIL PROTECTED] wrote: Tried that and also tried to call recache - doesn't help at all. Another part of the story - if image was created in my application it actually works fine on all monitors untill I save it and open again. It all

Re: Key Paths @count and mutablestrings

2008-11-05 Thread Amy Heavey
On 4 Nov 2008, at 17:32, Benjamin Stiglitz wrote: PurchaseOrder is an Entity, with a relationship called products to the PurchaseOrderItems Entity which lists the actual items on the order. I'd like a column in my Purchase Order tabel to display the number of items in the order, so I've

Re: Use PPPOE to load net

2008-11-05 Thread has
Adam Penny wrote: Actually, I just tried the link I mentioned and it didn't work. I'm guessing that script uses Internet Connect.app, which was dropped in 10.5. There's an example of how to do exactly what you want on this page though.

Setting permissions for files within an application on non-admin accounts...

2008-11-05 Thread Keith Blount
Hi, I have the feeling this may be a stupid question and that I'm missing the obvious here, but... My application comes with an interactive tutorial - that is, a tutorial that uses my app's file format so that the user opens it in my app and learns how to use the program by the very process

Notification appropriate

2008-11-05 Thread Robert Mullen
I asked earlier about a couple of views that were going to be alternating in a desktop app I am building and I have a related question. These views are loosely related in a parent child manner (but can operate completely independently as well.) The click of an iTunes arrow style link in an

Re: Dual screen problems

2008-11-05 Thread Tverdokhleb Andrey
On Nov 5, 2008, at 12:04 , I. Savant wrote: On Wed, Nov 5, 2008 at 2:57 PM, Tverdokhleb Andrey [EMAIL PROTECTED] wrote: Tried that and also tried to call recache - doesn't help at all. Another part of the story - if image was created in my application it actually works fine on all monitors

Re: Dual screen problems

2008-11-05 Thread I. Savant
On Wed, Nov 5, 2008 at 4:29 PM, Tverdokhleb Andrey [EMAIL PROTECTED] wrote: I'd file it with radarweb. Waste of time and no gratification for me at all ... [ Snip ] Some workaround posted here would have a lot more value for developers and our users IMHO. ... the above two quotes seem to

how to set datasource as image files in specific folder, and load datasource on launch?

2008-11-05 Thread Chunk 1978
i'm trying to figure out how to set the image browser to a specific directory of images and load those images with [update datasource] in the awakeFromNib method... currently, only drag and drop is possible, and the datasource is set to the dropped object's path, but i'd like to save all images

NSTableView highlited text color

2008-11-05 Thread Andre Masse
Hi, When selecting a row in a NSTableView, the default highliting (white text on blue background) doesn't work if the text is not black. Is there a setting somewhere (in IB) or a method to implement/override to fix that? I have a column's cell with its foreground color set to gray and

Re: NSTableView highlited text color

2008-11-05 Thread Corbin Dunn
On Nov 5, 2008, at 5:30 PM, Andre Masse wrote: Hi, When selecting a row in a NSTableView, the default highliting (white text on blue background) doesn't work if the text is not black. Is there a setting somewhere (in IB) or a method to implement/override to fix that? I have a column's

Re: NSTableView highlited text color

2008-11-05 Thread Mudi Dandan
I believe retuning an NSattributedstring for object value should work. On Nov 5, 2008, at 11:30 PM, Andre Masse wrote: Hi, When selecting a row in a NSTableView, the default highliting (white text on blue background) doesn't work if the text is not black. Is there a setting somewhere (in

Re: NSTableView highlited text color

2008-11-05 Thread Andre Masse
Thanks Corbin. Quick and easy, I like that :-) Andre Masse On Nov 5, 2008, at 17:48, Corbin Dunn wrote: If you set an explicit color on the cell, then it doesn't know it should flip the black text to white text when it is selected (in other words, it has no way of knowing that what you

Re: NSTableView highlited text color

2008-11-05 Thread Andre Masse
Thanks Mudi, That's another way too. Andre Masse On Nov 5, 2008, at 17:47, Mudi Dandan wrote: I believe retuning an NSattributedstring for object value should work. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: UIScrollViewDelegate methods and touches with customized UITextView

2008-11-05 Thread Ignacio Enriquez
It's me again. Thanks Roland for your advices. Now, I have actually realized a way to handle touches and scrolling methods at the same time. Inside my UITextView subclass I wrote the touch regarding methods implementation. Then Inside the UIViewController subclass (wich has a instance of the

Getting square corners of UITableView grouped style???

2008-11-05 Thread Ignacio Enriquez
I hope this is the right place to write this question: Well, I have created my table and created custom cells (they are initialized with CGRectZero) and I have to be missing something because I got the cells ok. But they are shown with an ugly square corner even though the table is grouped

Re: Dual screen problems

2008-11-05 Thread I. Savant
On Nov 5, 2008, at 6:42 PM, Tverdokhleb Andrey wrote: Anyway - I'll file the bug. Theere ya go. ;-) -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Key Paths @count and mutablestrings

2008-11-05 Thread Benjamin Stiglitz
I've cleared out all my other code and associated problems, and I'm at the same point, key path orderReference works, but [EMAIL PROTECTED] doesn't? [Session started at 2008-11-05 20:42:25 +.] 2008-11-05 20:42:28.462 powizard[22921] [_NSFaultingMutableSet 0x165e910

[Q] How to add nested items to NSOutlineView?

2008-11-05 Thread JongAm Park
Hello. I'm writing a Source List View using the NSOutlineView and an NSTreeController. It should work on Mac OS X 10.4 Tiger, so I can't use NSTreeNode. My Source List View is based on Mark Alldritt’s source list view, http://www.latenightsw.com/blog/?p=29. Problem is that when a data source

Re: [Q] How to add nested items to NSOutlineView?

2008-11-05 Thread Benjamin Stiglitz
However, if I get reference of an item in existing view and insert new item in its data source, NSMutableArray, it can't display the newly added nested items. I tried NSTreeController's rearragneObjects and the NSOutlineView's reloadItem:reloadChildren, but it doesn't seem to work for me.

Re: NSTableView highlited text color

2008-11-05 Thread Dave Fernandes
As yet another way to do this, you can subclass the NSTableView and override drawRow: clipRect: Here's my code to give a background color to expandable rows in an outline view (like in Mail.app). // Override to draw expandable rows with background color. - (void)drawRow:(int)rowIndex

Enumerating outlets automatically?

2008-11-05 Thread Graham Cox
Is there a way to enumerate the outlets of an object automatically? In a certain type of controller object I'm finding I'm writing a lot of code like this: [myOutlet1 setEnabled:NO]; [myOutlet2 setEnabled:NO]; ... etc for another several dozen outlets ... If I could get a list of outlets

Re: Enumerating outlets automatically?

2008-11-05 Thread David Duncan
On Nov 5, 2008, at 9:13 PM, Graham Cox wrote: Is there a way to enumerate the outlets of an object automatically? In a certain type of controller object I'm finding I'm writing a lot of code like this: [myOutlet1 setEnabled:NO]; [myOutlet2 setEnabled:NO]; ... etc for another several dozen

Performance problems with doubleClickAtIndex

2008-11-05 Thread Mark Munz
I'm hitting a major performance bottleneck when using doubleClickAtIndex. I have one sample file (about 3MB) with 23,500 hits that require me to use doubleClickAtIndex: to test for whole words. It is essentially a find/replace on full words. One find all (with no replacement) operation takes

Re: Enumerating outlets automatically?

2008-11-05 Thread Graham Cox
On 6 Nov 2008, at 4:26 pm, David Duncan wrote: If the 'enabled' state of all these objects are effectively tied to a particular state, then why not use bindings? You could bind the enabled state of these controls to a property of your controller object and then you just set the property

Re: Custom view controller

2008-11-05 Thread Tomaž Kragelj
I haven't though of this. I solved the issue though, through Cathy's proposal, by adding removeObservations method to my view controller base class and call it from my NSWindowController implementation. Now the dealloc is called as expected. In one of my nibs I do use the file's owner as a

Re: Making a Window Class Invocable from Any Thread

2008-11-05 Thread Hal Mueller
The Late Night Cocoa podcast episode on concurrent programming is very helpful too--especially if you have seen the concepts in operating system theory, but want a reminder of which Cocoa classes correspond to those concepts.

Core data, NSArrayController and different nibs

2008-11-05 Thread Tomaž Kragelj
It looked so trivial at the start, but didn't work as expected - my single window application uses the following setup: - MainMenu.nib: my AppController and all the NSArrayControllers with bindings set properly so when an item is selected in the master controller, it's details are handled