Re: Drawing over a transparent background

2009-08-24 Thread Ron Fleckner
On 24/08/2009, at 2:29 PM, Rob Keniger wrote: On 24/08/2009, at 9:33 AM, Ron Fleckner wrote: My borderless window has a semi-transparent background. When the drawing in a subview changes, the background retains a ghost of the original drawing in the subview. I don't want that ghost image

scroll automatically if the text is too long

2009-08-24 Thread Massimiliano Gargani
Hi there, there's a simple way to make text in a cell of a table to automatically scroll if the text is longer than the text field? something like itunes when song title is too long and start to scroll horizontally. Thanks, Max ___ Cocoa-dev m

Re: authorization services

2009-08-24 Thread Rick C.
thank you kyle, i've been carefully reading over authorization services since i posted and looks like i'm getting there. i definitely want to make sure i do this the right way and thanks again for your help! rick From: Kyle Sluder To: Rick C. Cc: cocoa d

Re: Core Data dog-slow when using first time after boot

2009-08-24 Thread Ruotger Skupin
Am 20.08.2009 um 22:28 schrieb Ben Trumbull: setRelationshipKeyPathsForPrefetching When I use setRelationshipKeyPathsForPrefetching the fetch throws: -[NSSQLAttribute inverseRelationship]: unrecognized selector sent to instance 0x10ee150 For the record: I do use one-way relationships Ru

Re: I need to convert NSTableView data into something suitable for consumption by a spreadsheet

2009-08-24 Thread Michael A. Crawford
Thanks to Kyle for the 'where' and to Graham for the 'how'. -Michael On Aug 18, 2009, at 11:08 PM, Kyle Sluder wrote: Coming at it from the point of NSTableView is attacking from the wrong direction. You should be exporting your model data as CSV; a controller (in your case, likely an NSArr

Re: readInBackgroundAndNotify not working?

2009-08-24 Thread Greg Parker
On Aug 23, 2009, at 8:12 PM, Adam R. Maxwell wrote: On Aug 23, 2009, at 8:01 PM, Kyle Sluder wrote: On Aug 23, 2009, at 7:42 PM, PCWiz wrote: name:@"NSFileHandleReadCompletionNotification" NSFileHandleReadCompletionNotification is the name of a constant, not necessarily its value.

Re: scroll automatically if the text is too long

2009-08-24 Thread Sean Kline
Interface Builder->Text Field Cell Attributes->Layout->Scrolls On Mon, Aug 24, 2009 at 3:59 AM, Massimiliano Gargani wrote: > Hi there, > > there's a simple way to make text in a cell of a table to automatically > scroll if the text is longer than the text field? > > something like itunes when s

Need NSOperation replacement for Tiger (10.4)

2009-08-24 Thread Michael A. Crawford
I have written an application that uses the NSOperation and NSOperationQueue classes. My customer now wants me to make it run on Tiger. Before I try to write my own limited version of NSOperation and NSOperationQueue that creates threads based on the number of available processing cores (

Re: scroll automatically if the text is too long

2009-08-24 Thread Massimiliano Gargani
Hi, I've already tried but the text don't move. I set IB-->Text Field Cell Attributes: Layout: scrolls Text dir: natural (but tried all options) State: enable continuos (flagged and not flagged) I've noticed that Line break for Table View attributes is fixed to Word Wrap and don't let you t

Re: Confusion about custom UITableViewCell

2009-08-24 Thread Fritz Anderson
On 23 Aug 2009, at 7:19 PM, Chris Idou wrote: I'm trying to make a custom UITableViewCell, but the way I'm doing it, all the drawing of the table seems to be screwed up. The view seems to be working in some sense, because I can see the data, but only one row at the bottom can be seen and th

Re: scroll automatically if the text is too long

2009-08-24 Thread Graham Cox
On 24/08/2009, at 10:30 PM, Massimiliano Gargani wrote: I've noticed that Line break for Table View attributes is fixed to Word Wrap and don't let you to change. Nothing to stop you changing that in your code. --Graham ___ Cocoa-dev mailing li

Re: I am not sure which message I have to trust?

2009-08-24 Thread Fritz Anderson
On 23 Aug 2009, at 9:27 PM, Agha Khan wrote: When I am using emulator there is no leak, but when I run on device, it looks like there is a leak. I am unable to figure out why it so nor I was able to find the source. You should say explicitly, preferably in the subject, what Cocoa OS you

Re: Need NSOperation replacement for Tiger (10.4)

2009-08-24 Thread Rob Keniger
On 24/08/2009, at 10:25 PM, Michael A. Crawford wrote: I have written an application that uses the NSOperation and NSOperationQueue classes. My customer now wants me to make it run on Tiger. Before I try to write my own limited version of NSOperation and NSOperationQueue that creates thre

Re: scroll automatically if the text is too long

2009-08-24 Thread Massimiliano Gargani
Yep, but I don't know if "locked" line break attributes of table view if the cause of my problem. I mean, it's enough scrolls is set only for Text Field Cell or *must* be set for both, Table View *and* Text Field Cell? Sorry if my question is stupid but I'm just learning cocoa and before

Re: authorization services

2009-08-24 Thread Rick C.
hi again, if i can follow up please about authorization services i just want to be sure i'm on the right track. if i'm just trying to do a simple movePath but i don't have access is the only way to get access by using authorizationExecuteWithPrivileges? i keep reading about how i should avoid

Not accepting click on Button

2009-08-24 Thread Nikhil Khandelwal
Hi List, In my application, I am running a process for copying files from one location to another. In this I select number of files from panel and then showing a progress bar which shows progress of copying. In this window I have a cancel button to cancel the copying process but clicking on the

Re: scroll automatically if the text is too long

2009-08-24 Thread I. Savant
On Mon, Aug 24, 2009 at 3:59 AM, Massimiliano Gargani wrote: something like itunes when song title is too long and start to scroll horizontally. With respect, I don't believe any of the responses so far have noticed the above line. He appears to be asking for the animated scrolling i

Re: Not accepting click on Button

2009-08-24 Thread I. Savant
On Aug 24, 2009, at 9:14 AM, Nikhil Khandelwal wrote: In my application, I am running a process for copying files from one location to another. In this I select number of files from panel and then showing a progress bar which shows progress of copying. In this window I have a cancel button

Re: scroll automatically if the text is too long

2009-08-24 Thread Graham Cox
On 24/08/2009, at 10:49 PM, Massimiliano Gargani wrote: but I don't know if "locked" line break attributes of table view if the cause of my problem. I mean, it's enough scrolls is set only for Text Field Cell or *must* be set for both, Table View *and* Text Field Cell? Sorry if my questi

Re: Not accepting click on Button

2009-08-24 Thread Dave DeLong
Your copy method seems to be blocking the main thread. If you split it off onto its own thread, it should do what you're looking for. You mayhave to take other things into account, such as resource locking, but such is the world of threaded programming. Dave Sent from my iPod On Aug 24, 2

Re: scroll automatically if the text is too long

2009-08-24 Thread Graham Cox
On 24/08/2009, at 11:14 PM, I. Savant wrote: With respect, I don't believe any of the responses so far have noticed the above line. He appears to be asking for the animated scrolling in iTunes' track title display. Well, I thought that at first but after reading it different ways decid

Getting an image of an NSTableView row

2009-08-24 Thread Paul Kim
I'm trying to get an image of an NSTableView row. Sounds simple but if you actually try it, you'll find that NSTableView is particularly resistant to this. Here is what I am looking for: - The row must look like how it does to the user. In particular, the background must look like as it doe

Re: scroll automatically if the text is too long

2009-08-24 Thread Massimiliano Gargani
Just to clarify, I've talked about itunes just as example. What I looking for is a way to: I have a table (not editable) with 1 column and severals rows. contents in some rows is longer than colum width so I have: Column --- Venice Rome Los Ang New Yor Washin. etc etc So

Re: scroll automatically if the text is too long

2009-08-24 Thread I. Savant
On Aug 24, 2009, at 10:12 AM, Massimiliano Gargani wrote: I have a table (not editable) with 1 column and severals rows. contents in some rows is longer than colum width so I have: Column --- Washin. So i'm looking a way to scroll content of row when selected. something like: Wash

Re: Need NSOperation replacement for Tiger (10.4)

2009-08-24 Thread Adam R. Maxwell
On Aug 24, 2009, at 5:47 AM, Rob Keniger wrote: On 24/08/2009, at 10:25 PM, Michael A. Crawford wrote: I have written an application that uses the NSOperation and NSOperationQueue classes. My customer now wants me to make it run on Tiger. Before I try to write my own limited version of

Re: Need NSOperation replacement for Tiger (10.4)

2009-08-24 Thread Michael A. Crawford
Thanks', guys. These are both excellent suggestions. I'll weight them in order to determine which will be the best fit for my particular needs. -Michael On Aug 24, 2009, at 10:21 AM, Adam R. Maxwell wrote: On Aug 24, 2009, at 5:47 AM, Rob Keniger wrote: On 24/08/2009, at 10:25 PM,

Re: readInBackgroundAndNotify not working?

2009-08-24 Thread Adam R. Maxwell
On Aug 24, 2009, at 3:45 AM, Greg Parker wrote: On Aug 23, 2009, at 8:12 PM, Adam R. Maxwell wrote: On Aug 23, 2009, at 8:01 PM, Kyle Sluder wrote: On Aug 23, 2009, at 7:42 PM, PCWiz wrote: name:@"NSFileHandleReadCompletionNotification" NSFileHandleReadCompletionNotification is the

Create VNC Client iPhone

2009-08-24 Thread Joe Turner
Hello, I've wanted to switch from bonjour to something more universal for a while now. And, I'm wondering about how to do VNC. I've seen that many apps on the iPhone use Apple's Screen-Sharing functionality as a VNC Server, and I would like to do the same. I have looked around for any sam

Re: Create VNC Client iPhone

2009-08-24 Thread Andrew Farmer
On 24 Aug 2009, at 07:49, Joe Turner wrote: I've wanted to switch from bonjour to something more universal for a while now. And, I'm wondering about how to do VNC. I've seen that many apps on the iPhone use Apple's Screen-Sharing functionality as a VNC Server, and I would like to do the same

Re: Create VNC Client iPhone

2009-08-24 Thread Michael Watson
On Aug 24, 2009, at 7:49, Joe Turner wrote: Hello, I've wanted to switch from bonjour to something more universal for a while now. And, I'm wondering about how to do VNC. I've seen that many apps on the iPhone use Apple's Screen-Sharing functionality as a VNC Server, and I would like to

Re: Simple array controller master-detail binding problem

2009-08-24 Thread Leon Starr
Thanks, Quincy. There was no error message in the session when I originally submitted my question. But I just tried running my code (unchanged) this morning several times and found that SOMETIMES I get an error in the console just before the stack trace. And it is not always exactly the

Re: leak in a sound function

2009-08-24 Thread Sean McBride
On 8/23/09 11:37 AM, Agha Khan said: > if (fileInfo != NULL) > { > delete fileInfo; Another minor note: you don't need to check if the pointer is null. free (), delete, and delete[] all do nothing if given null (this is do

Re: authorization services

2009-08-24 Thread Kyle Sluder
On Mon, Aug 24, 2009 at 6:10 AM, Rick C. wrote: > if i can follow up please about authorization services i just want to be sure > i'm on the right track.  if i'm just trying to do a simple movePath but i > don't have access is the only way to get access by using > authorizationExecuteWithPrivile

Re: Simple array controller master-detail binding problem

2009-08-24 Thread Kyle Sluder
On Mon, Aug 24, 2009 at 9:14 AM, Leon Starr wrote: > There was no error message in the session when I originally submitted my > question.  But I just tried running my code (unchanged) this morning several > times and found that SOMETIMES I get an error in the console just before the > stack trace.

Re: I am not sure which message I have to trust?

2009-08-24 Thread David Duncan
On Aug 23, 2009, at 7:27 PM, Agha Khan wrote: When I am using emulator there is no leak There is no such thing as the iPhone OS Emulator. It is the iPhone OS Simulator, the major difference being that there is no guarantee that the Simulator will faithfully reproduce everything that occurs

Re: leak in a sound function

2009-08-24 Thread David Duncan
On Aug 23, 2009, at 9:53 AM, Agha Khan wrote: When I call this function 2nd time I get a leak. I am unable to figure out what I am doing wrong. Please note if I call this function once there is no leak. SoundEngine_Initialize(44100); Please do not use SoundEngine. It was pulled

Re: Simple array controller master-detail binding problem

2009-08-24 Thread Leon Starr
Yes it does, Kyle! I was so focused on being an array controller binding idiot that I forgot that I was also a memory management fool. I was about to google that NSZombie thing - which I will do next, when I took one more look at the code, this time with a clear focus on memory. The rele

Re: Simple array controller master-detail binding problem

2009-08-24 Thread Kyle Sluder
On Mon, Aug 24, 2009 at 9:58 AM, Leon Starr wrote: > Pardon my thinking as I write I am guessing I need the retain because > this thing is being autoreleased.  AND it worked in the command line because > the pool isn't drained in the middle of my session, but with a GUI it is > drained on each

Why would +[initialize] be called twice?

2009-08-24 Thread Michael A. Crawford
Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called twice. + (void)initialize { // Create the defaults dictionary, fill it with the standard values, // and register it. NSMutableDicti

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Jonathan del Strother
On Mon, Aug 24, 2009 at 6:19 PM, Michael A. Crawford wrote: > Why would the class initializer be called more than once when my app starts > up? Is this expected behavior?  In case you're wondering, it is called > twice. > > + (void)initialize > { >    // Create the defaults dictionary, fill it with

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Kyle Sluder
On Mon, Aug 24, 2009 at 10:19 AM, Michael A. Crawford wrote: > Why would the class initializer be called more than once when my app starts > up? Is this expected behavior?  In case you're wondering, it is called > twice. Read the docs for +[NSObject initialize]: "If a particular class does not im

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Quincey Morris
On Aug 24, 2009, at 10:19, Michael A. Crawford wrote: Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called twice. Yes, it can be invoked more than one. Searching developer.apple.com for "initiali

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Michael A. Crawford
Got it. Thanks. -Michael On Aug 24, 2009, at 1:29 PM, Quincey Morris wrote: On Aug 24, 2009, at 10:19, Michael A. Crawford wrote: Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called twice. Ye

Re: authorization services

2009-08-24 Thread Jean-Daniel Dupas
Le 24 août 2009 à 18:35, Kyle Sluder a écrit : On Mon, Aug 24, 2009 at 6:10 AM, Rick C. wrote: if i can follow up please about authorization services i just want to be sure i'm on the right track. if i'm just trying to do a simple movePath but i don't have access is the only way to get a

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Jean-Daniel Dupas
Le 24 août 2009 à 19:19, Michael A. Crawford a écrit : Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called twice. + (void)initialize { // Create the defaults dictionary, fill it with the stand

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Bill Bumgarner
On Aug 24, 2009, at 7:19 AM, Michael A. Crawford wrote: Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called twice. + (void)initialize { // Create the defaults dictionary, fill it with the stand

F-Script 2.0 available

2009-08-24 Thread Philippe Mougin
Hi all, F-Script 2.0 is has been released. It provides a set of open source tools for interactive introspection, manipulation and scripting of Cocoa objects. New features include system-wide scripting, dynamic Cocoa class creation, 64-bit, garbage collection, and more. More info: http://w

Re: Drawing over a transparent background

2009-08-24 Thread Steve Christensen
On Aug 23, 2009, at 10:00 PM, Ron Fleckner wrote: On 24/08/2009, at 2:29 PM, Rob Keniger wrote: On 24/08/2009, at 9:33 AM, Ron Fleckner wrote: My borderless window has a semi-transparent background. When the drawing in a subview changes, the background retains a ghost of the original draw

Re: Core Data dog-slow when using first time after boot

2009-08-24 Thread Ben Trumbull
On Aug 24, 2009, at 3:20 AM, Ruotger Skupin wrote: Am 20.08.2009 um 22:28 schrieb Ben Trumbull: setRelationshipKeyPathsForPrefetching When I use setRelationshipKeyPathsForPrefetching the fetch throws: -[NSSQLAttribute inverseRelationship]: unrecognized selector sent to instance 0x10ee15

re: Using Core Data NSManagedObject subclasses outside of a managed object context

2009-08-24 Thread Ben Trumbull
I have objects that I use with core data that were automatically generated for me by xcode and represent entities in my data store. They all subclass NSManagedObject, and do not have instance variables, but instead use the @dynamic setting for their properties, pretty standard. My understan

Where to get Frameworks for AVFoundation.framework?

2009-08-24 Thread Agha Khan
Hi: I am using iPhone OS 3.0 and unable to compile my code because I am missing AVFoundation.framework which I needed for sound files. What is the name of compatible framework or some work around. Thanks in advance. Best regards Agha Khan ___ Coc

Re: Where to get Frameworks for AVFoundation.framework?

2009-08-24 Thread David Duncan
On Aug 24, 2009, at 2:44 PM, Agha Khan wrote: Hi: I am using iPhone OS 3.0 and unable to compile my code because I am missing AVFoundation.framework which I needed for sound files. What is the name of compatible framework or some work around. Your probably looking in the wrong place for t

Re: Drawing over a transparent background

2009-08-24 Thread Ron Fleckner
On 25/08/2009, at 6:21 AM, Steve Christensen wrote: On Aug 23, 2009, at 10:00 PM, Ron Fleckner wrote: On 24/08/2009, at 2:29 PM, Rob Keniger wrote: On 24/08/2009, at 9:33 AM, Ron Fleckner wrote: My borderless window has a semi-transparent background. When the drawing in a subview changes

Re: Drawing over a transparent background

2009-08-24 Thread Alastair Houghton
On 24 Aug 2009, at 23:36, Ron Fleckner wrote: I think you are right to suggest drawing it all in one view. That would probably avoid the problem. The reason I don't is I'm too much of a maths dolt to be able to work out the point co-ordinates for each of the hand positions. :-) You don

sortedArrayUsingFunction

2009-08-24 Thread Boyd Collier
The Discussion section in the current documentation for the NSArray method sortedArrayUsingFunction: context: reads "The new array contains references to the receiver’s elements, not copies of them." Nothing is said about incrementing the retain count of the objects in the array, which seems

Re: Drawing over a transparent background

2009-08-24 Thread Ron Fleckner
On 25/08/2009, at 8:44 AM, Alastair Houghton wrote: On 24 Aug 2009, at 23:36, Ron Fleckner wrote: I think you are right to suggest drawing it all in one view. That would probably avoid the problem. The reason I don't is I'm too much of a maths dolt to be able to work out the point co-ord

Re: F-Script 2.0 available

2009-08-24 Thread André Berg
Congrats! The work you are doing with F-Script is really cool. Through F-Script I learned as much about Cocoa than I did by picking up Hillegass' book. And I also use it today to test short and middle sized concepts before building a whole test app. I always liked exploring Imaging stuff with

Re: sortedArrayUsingFunction

2009-08-24 Thread Keary Suska
On Aug 24, 2009, at 4:46 PM, Boyd Collier wrote: The Discussion section in the current documentation for the NSArray method sortedArrayUsingFunction: context: reads "The new array contains references to the receiver’s elements, not copies of them." Nothing is said about incrementing the reta

Re: otest output in xUnit XML format?

2009-08-24 Thread Tommy McLeod
Have a look at this http://osx-ci.blogspot.com ... I've got cobertura style coverage using scan-build, gcovr, gcov and the unit testing framework from the google toolbox for mac, however it should work for otest so long as the unit tests are actually invoked. Turning on the profiling will enable a

[iphone] Rotating UIViews?

2009-08-24 Thread Erg Consultant
Is there a simple way to rotate a UIView without applying a transform? I have a single UIViewController and nib file which has one view in landscape orientation with a single image in it. When I run my app, the view appears but in portrait mode which cuts off the right side of the view. I just w

Why I have a leak? I am unable to understand

2009-08-24 Thread Agha Khan
HI: I know the leak is in next 2 lines I have commented all the code except these 2 lines. // NSTimeInterval NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; unsigned unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSH

NSTableView and programmatic changing of contextual menu

2009-08-24 Thread Jack Carbaugh
I would like to change the Titles of MenuItems in a contextual menu based on the tableview row/cell in which the Right click was initiated. I've searched several times for various methods to implement this, but came up empty. If i were using an imagekit cell, i could use: - (void) imageBrow

Re: Why I have a leak? I am unable to understand

2009-08-24 Thread Nick Zitzmann
On Aug 24, 2009, at 6:20 PM, Agha Khan wrote: I am not releasing gregorian, because I never used retain. Same is true with dateSegments. Can someone help me. Yes, but you _did_ init it, so you have to release it. Go read the rules again. Nick Zitzmann __

Re: Why I have a leak? I am unable to understand

2009-08-24 Thread Nathan Vander Wilt
On Aug 24, 2009, at 5:20 PM, Agha Khan wrote: HI: I know the leak is in next 2 lines I have commented all the code except these 2 lines. // NSTimeInterval NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; unsigned unitFlags = NSYearCalendarUnit |

Re: Why I have a leak? I am unable to understand

2009-08-24 Thread Luke the Hiesterman
The obligation to release doesn't come from the init - it comes from the alloc. This is an important distinction. Luke On Aug 24, 2009, at 5:24 PM, Nick Zitzmann wrote: On Aug 24, 2009, at 6:20 PM, Agha Khan wrote: I am not releasing gregorian, because I never used retain. Same is true wi

Re: Why I have a leak? I am unable to understand

2009-08-24 Thread Hank Heijink (Mailinglists)
On Aug 24, 2009, at 8:20 PM, Agha Khan wrote: HI: I know the leak is in next 2 lines I have commented all the code except these 2 lines. // NSTimeInterval NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; unsigned unitFlags = NSYearCalendarUnit |

Re: NSTableView and programmatic changing of contextual menu

2009-08-24 Thread Kyle Sluder
On Mon, Aug 24, 2009 at 5:20 PM, Jack Carbaugh wrote: > does something similar exist for tables? if not, ideas on how to sublcass > and implement. Use -[NSTableView clickedRow] and -clickedColumn. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lis

applicationWillTerminate: issue

2009-08-24 Thread Michael de Haan
May I ask the group the following? In my small application, I save the user's preferences with applicationWillTerminate: The application uses 2 "applicationWillTerminate:", one in the app's main class, the other in the app's preference class. What happens is that if the preference class i

Re: NSTableView and programmatic changing of contextual menu

2009-08-24 Thread Jack Carbaugh
I understand that clickedRow will give me the proper data that I want to use ... My question is how do i change the contextual menu when the user right clicks. On Aug 24, 2009, at 8:28 PM, Kyle Sluder wrote: On Mon, Aug 24, 2009 at 5:20 PM, Jack Carbaugh wrote: does something similar ex

Re: applicationWillTerminate: issue

2009-08-24 Thread Kyle Sluder
On Mon, Aug 24, 2009 at 5:33 PM, Michael de Haan wrote: > 1) Is what I am seeing expected behavior or am I doing something wrong. You're going to have to post your code. -applicationWillTerminate: doesn't magically get called. NSApplication posts this notification to the default notification cent

Re: NSTableView and programmatic changing of contextual menu

2009-08-24 Thread Kyle Sluder
On Mon, Aug 24, 2009 at 5:39 PM, Jack Carbaugh wrote: > My question is how do i change the contextual menu when the user right > clicks. Override -menuForEvent:. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Drawing over a transparent background

2009-08-24 Thread Graham Cox
On 25/08/2009, at 8:36 AM, Ron Fleckner wrote: I think you are right to suggest drawing it all in one view. That would probably avoid the problem. The reason I don't is I'm too much of a maths dolt to be able to work out the point co-ordinates for each of the hand positions. Hi Ron, O

Re: applicationWillTerminate: issue

2009-08-24 Thread Graham Cox
On 25/08/2009, at 10:33 AM, Michael de Haan wrote: So, 2 quick questions. 1) Is what I am seeing expected behavior or am I doing something wrong. 2) Although not strictly speaking a cocoa question, would better design be to collect all "values/properties" to be saved in one location, t

Re: Syntax Coloring?

2009-08-24 Thread Keitaroh Kobayashi
On Sun, Aug 23, 2009 at 9:32 PM, BareFeet wrote: > Hi Keita, > > Hello, I'm writing a code editor and so far, i've been using Flex for >> regex-matching the whole document every time the text is changed and >> coloring appropriately... >> > > How are you doing this? How did you incorporate Flex o

Re: authorization services

2009-08-24 Thread Rick C.
ok thank you both it's most helpful! rick From: Jean-Daniel Dupas To: Rick C. Cc: cocoa dev Sent: Tuesday, August 25, 2009 1:35:45 AM Subject: Re: authorization services Le 24 août 2009 à 18:35, Kyle Sluder a écrit : > On Mon, Aug 24, 2009 at 6:10 AM, Ri

Help needed with ConvertCocoa64 script

2009-08-24 Thread Graham Cox
Trying to run the ConvertCocoa64 script. /Developer/Extras/64BitConversion/ConvertCocoa64 'find . -name '*. [hm]' | xargs' this comes up 'no match' yet if I run the find command directly on the current directory: find . -name '*.[hm]' | xargs it lists all my source files as expected. What

Re: Drawing over a transparent background

2009-08-24 Thread Ron Fleckner
On 25/08/2009, at 10:56 AM, Graham Cox wrote: On 25/08/2009, at 8:36 AM, Ron Fleckner wrote: I think you are right to suggest drawing it all in one view. That would probably avoid the problem. The reason I don't is I'm too much of a maths dolt to be able to work out the point co-ordinat

Re: Help needed with ConvertCocoa64 script

2009-08-24 Thread Andrew Farmer
On 24 Aug 2009, at 19:17, Graham Cox wrote: Trying to run the ConvertCocoa64 script. /Developer/Extras/64BitConversion/ConvertCocoa64 'find . -name '*. [hm]' | xargs' this comes up 'no match' Try this: find . -name '*.[hm]' | xargs /Developer/Extras/64BitConversion/ ConvertCocoa64 __

What's the purpose of the "fax" received action?

2009-08-24 Thread Behrang Saeedzadeh
Hi all, What's the purpose of the "fax" received action in NSTableView and is it documented somewhere at all? Did a quick search and couldn't find its documentation. Best regards, Behrang Saeedzadeh --- http://my.opera.com/behrangsa http://twitter.com/behrangsa ___

Re: Help needed with ConvertCocoa64 script

2009-08-24 Thread Graham Cox
Sorted - Thankyou! Why don't they just state that in the docs, instead of assuming we're all command-line jocks? Or is it a shell difference thing? --Graham On 25/08/2009, at 12:31 PM, Andrew Farmer wrote: On 24 Aug 2009, at 19:17, Graham Cox wrote: Trying to run the ConvertCocoa64 scri

Drawing text into a UiView

2009-08-24 Thread J J
Hi, I'm trying to write an app that will page through text .. I'm trying to grab the text, find out how much with fit on a page, write the text to a view (page), then perhaps paginate the pages around it onto other views to be ready as needed. Anyone have any ideas on how this would work ? I

Re: Syntax Coloring?

2009-08-24 Thread Behrang Saeedzadeh
Hi there, Somebody has written a complete thesis about this and other common tasks required for developing IDEs: twagner-lexing.pdf . In

Adding Segmented Buttons to Toolbar.

2009-08-24 Thread Philip Juel Borges
Hi. Does any one know how to add segmented cell buttons to a toolbar in Interface builder? Like the ones in Mail and the back and forward buttons in Safari. I've searched high and low in the mailing list+google and must admit that I haven't gotten anywhere close. /Philip ___

Re: Confusion about custom UITableViewCell

2009-08-24 Thread Phillip Porch
I'm trying to make a custom UITableViewCell, but the way I'm doing it, all the drawing of the table seems to be screwed up. The view seems to be working in some sense, because I can see the data, but only one row at the bottom can be seen and things are generally screwed up when scrolling

Re: Adding Segmented Buttons to Toolbar.

2009-08-24 Thread Rob Keniger
On 25/08/2009, at 2:09 AM, Philip Juel Borges wrote: Does any one know how to add segmented cell buttons to a toolbar in Interface builder? Like the ones in Mail and the back and forward buttons in Safari. I've searched high and low in the mailing list+google and must admit that I haven'

Re: applicationWillTerminate: issue

2009-08-24 Thread Michael de Haan
Hi Kyle, FIrstly, thanks for this insight. You should be saving your preferences immediately, as soon as they are changed in the UI. You should not be waiting for your app to quit. That makes much more sense, and solves problem 1. But, just so that I understand your other explanation, 1

need help about the touch event

2009-08-24 Thread Gill Bates
Hi All, currently we have three kinds of touch event: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"touchesBegan"); } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"touchesMoved"); } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEv

Re: Syntax Coloring?

2009-08-24 Thread Rob Keniger
On 25/08/2009, at 11:36 AM, Keitaroh Kobayashi wrote: Anyways, I was thinking I could keep the basic flex part, and apply it only to the changed portions of the text. The problem with that is that I would have to check for quotes and record what's inside the quote from where the person sta

NSTableView stops updating.....

2009-08-24 Thread tarek
Hi Everyone, I have a NSTableView that stops updating randomly. I have a separate thread that I use to all the hard work. I get there using performSelectorInBackground:withObject:. From that thread I call [tableView reloadData]. Like I said, it can work for hours or it will work for 10 se

undo and NSTextField

2009-08-24 Thread John Kassebaum
I have an app that has many arrays of inter-related items shown in NSTableView and using NSArrayControllers. This is not a Core Data app. Today, I added an NSTextField to the window (and not in any table), and set the NSTextField as editable. The problem is that undo no longer works for

Re: NSTableView stops updating.....

2009-08-24 Thread Graham Cox
On 25/08/2009, at 4:14 AM, tarek wrote: From that thread I call [tableView reloadData] Try calling this on the main thread. I think reloadData marks the table view as needing display, and that should be done on the main thread. [tableView performSelectorOnMainThread:@selector(reloadDat

Re: NSTableView stops updating.....

2009-08-24 Thread Joar Wingfors
On 24 aug 2009, at 21.00, Graham Cox wrote: From that thread I call [tableView reloadData] Try calling this on the main thread. I think reloadData marks the table view as needing display, and that should be done on the main thread. [tableView performSelectorOnMainThread:@selector(reload