Making the Text in a Text Cell change color when the Rows Checkbox has been checked.

2009-09-22 Thread Joshua Garnham
I have a NSOutlineView and I want to make the text for a row change color when the check box on that row has been checked. How would I do that? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Oh notification, where are you?

2009-09-22 Thread Michael Thon
On Sep 22, 2009, at 3:03 AM, Rob Keniger wrote: On 22/09/2009, at 2:31 AM, Michael Thon wrote: NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; [nc addObserver:self selector:@selector(sendNotification:)

Re: Making the Text in a Text Cell change color when the Rows Checkbox has been checked.

2009-09-22 Thread Kyle Sluder
On Mon, Sep 21, 2009 at 11:10 PM, Joshua Garnham joshua.garn...@yahoo.co.uk How would I do that? You have a habit of asking these sorts of questions. What have you tried? http://www.whathaveyoutried.com --Kyle Sluder ___ Cocoa-dev mailing list

Re: an app that never quits

2009-09-22 Thread Erick Calder
On Sep 21, 2009, at 1:21 PM, Sixten Otto wrote: On Mon, Sep 21, 2009 at 4:15 PM, Erick Calder e...@arix.com wrote: ok, perhaps there's another way I can solve my problem. I have a little app called Trapster that uses something called push technology... I think what it means is that some

Re: an app that never quits

2009-09-22 Thread Kyle Sluder
On Mon, Sep 21, 2009 at 11:30 PM, Erick Calder e...@arix.com wrote: wow.  ok.  I guess that's not going to help much then.  I must say that without daemons the range of applications possible seems rather quite narrow to me. Background processing is a much-desired feature. You can add your

IB does not show Outlet/Action section in inspector

2009-09-22 Thread Michael Süssner
When I select an object in IB, the inspector does not display the outlet/action section. Is this a bug? I have installed Xcode on another computer and experienced the same behaviour. I am using Xcode3.2 and snow leopard. Any help? Michael ___

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Kyle Sluder
On Mon, Sep 21, 2009 at 11:57 PM, Michael Süssner michael.suess...@utanet.at wrote: When I select an object in IB, the inspector does not display the outlet/action section. Did you remember to click the Outlet inspector? g If so, I would definitely consider that to be a bug. Makes IB kinda

Re: Making the Text in a Text Cell change color when the Rows Checkbox has been checked.

2009-09-22 Thread Colin Howarth
On 22 Sep, 2009, at 08:22, Kyle Sluder wrote: On Mon, Sep 21, 2009 at 11:10 PM, Joshua Garnham joshua.garn...@yahoo.co.uk How would I do that? You have a habit of asking these sorts of questions. What have you tried? http://www.whathaveyoutried.com --Kyle Sluder Excellent article!

NSArrayController addObject or insertObject:atArrangedObjectIndex:

2009-09-22 Thread BareFeet
Hi all, I have an NSArrayController and am trying to get an add button to work, so that it inserts a new DataRow object at the current selection, or at the end if no selection. Here's my code: - (IBAction) insertDataRow:(id)sender { DataRow* newDataRow = [[DataRow new]

Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:

2009-09-22 Thread Dave Keck
It looks like dataRowsController is no longer a valid object by the time -addObject:/-insertObject: is called on it. Try running your program with NSZombieEnabled. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:

2009-09-22 Thread Colin Howarth
On 22 Sep, 2009, at 09:12, BareFeet wrote: Hi all, I have an NSArrayController and am trying to get an add button to work, so that it inserts a new DataRow object at the current selection, or at the end if no selection. Here's my code: - (IBAction) insertDataRow:(id)sender {

Re: drawing/masking one image with the alpha value from another

2009-09-22 Thread Alastair Houghton
On 22 Sep 2009, at 06:18, Roland King wrote: I hadn't seen CIFilter, no, that might have been a good avenue to explore however I think that's not available on the phone (and this is for the phone even though I didn't explicitly state that earlier, apologies). So I'll have to use something

WebView and PickerView problem

2009-09-22 Thread Bartosz Białecki
Hi, I have small problem. I have WebView in my application and I open website where there are some select elements. When I clicked on select, then PickerView appears. The problem is, when I click Done button in PickerView scrollbar in WebView changes his position. Does anyone know what's going

Re: XCode Developer issue. Debugger errors since upgrading to Snow Leopard: unable to read unknown load command 0x80000022

2009-09-22 Thread Jeremy Pereira
Sorry about coming to this late - I've been away. As I don't see any other responses to this in the list, I am replying. Apologies if it's already been covered. On 14 Sep 2009, at 17:43, maxwellma...@gmail.com wrote: Hi Folks, running XCode in debug mode shows this error countless times

Re: XCode Developer issue. Debugger errors since upgrading to Snow Leopard: unable to read unknown load command 0x80000022

2009-09-22 Thread maxwellmac99
No I hadn't had a solution yet. Thanks Jeremy. That's done the trick. Cheers, Max On 22 Sep 2009, at 10:25, Jeremy Pereira wrote: Sorry about coming to this late - I've been away. As I don't see any other responses to this in the list, I am replying. Apologies if it's already been

Re: Why am I always getting the linker error: 'duplicate symbol'...?

2009-09-22 Thread Jean-Daniel Dupas
You can use an enum to define integer constants enum { x = 123, }; Le 21 sept. 2009 à 23:15, Frederick C. Lee a écrit : I suspected such.Thanks to all. I'm assuming 'const datatype' is better then the compiler directive '#define', due to the use of the compiler for more-efficient

CoreData SQL tracing...

2009-09-22 Thread Brian Bruinewoud
Sorry for asking this but I was unable to find this in the archives even though I know I read it here before. How can I turn on logging/tracing of the SQL statements issued by CoreData? I need this for an iPhone app running in the simulator. Thanks, Brian.

Re: Oh notification, where are you?

2009-09-22 Thread Jerry Krinock
On 2009 Sep 21, at 23:20, Michael Thon wrote: I did find the problem - my thread needs a runloop in order to process notifications. Following this fellow's blog post: http://confuseddevelopment.blogspot.com/2006_10_01_archive.html I added CFRunLoopRun(); after starting the

Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:

2009-09-22 Thread BareFeet
On 22/09/2009, at 5:18 PM, Dave Keck wrote: It looks like dataRowsController is no longer a valid object by the time -addObject:/-insertObject: is called on it. Thanks for the reply Dave. That doesn't seem to be the problem. dataRowsController is hooked up via Interface Builder to the

Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:

2009-09-22 Thread Graham Cox
On 22/09/2009, at 10:40 PM, BareFeet wrote: NSLog(@setDataRows: count == %@, [newDataRows count]); Once I removed the NSLog line (or just the [newDataRows count] method), it works fine. Two followup questions: 1. Why can't I use the array count in the NSlog like that?

Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:

2009-09-22 Thread Graham Cox
On 22/09/2009, at 10:40 PM, BareFeet wrote: 2. Does addObject: and insertObject: actually just get the whole array, add the extra object, then write the whole array back to the instance variable? I thought it would be more efficient than that. Not sure why you think this is inefficient,

OR compositing operation?

2009-09-22 Thread Oleg Krupnov
Hi, I'd like to draw in a graphics context in such a compositing mode: R = MAX(S, D) i.e. out of two colors (source and destination), the maximum color (channel-wise) was chosen. This is basically equivalent to ORing the colors. Is this possible? I don't see such NSCompositingOperation.

OR compositing operation?

2009-09-22 Thread Colin Howarth
On 22 Sep, 2009, at 15:22, Oleg Krupnov wrote: Hi, I'd like to draw in a graphics context in such a compositing mode: R = MAX(S, D) i.e. out of two colors (source and destination), the maximum color (channel-wise) was chosen. This is basically equivalent to ORing the colors. Is this

Re: OR compositing operation?

2009-09-22 Thread Oleg Krupnov
Thanks for quick reply. Rr = (Sr Dr) ? Sr : Dr Rg = (Sg Dg) ? Sg : Dg Rb = (Sb Db) ? Sb : Db Yes, that's what I want. After giving it another thought, I see that it's not equivalent to bitwise OR, say MAX (1,2) = 2, wheres OR (1,2) = 3. Anyway, I would like to know if it's possible to use

Displaying Strings in custom formats

2009-09-22 Thread Arun
Hi All, I have a set of lines and needs to display in following format. *This is the list which has a* - the string quality - the another quality - the another quality Now this will explain *some meaning* text in a paragraph with a link

Displaying Strings in custom formats

2009-09-22 Thread Arun
Hi All, I have a set of lines and needs to display in following format. *This is the list which has a* - the string quality - the another quality - the another quality Now this will explain *some meaning* text in a paragraph with a link

Re: OR compositing operation?

2009-09-22 Thread Oleg Krupnov
Thanks for quick reply. Rr = (Sr Dr) ? Sr : Dr Rg = (Sg Dg) ? Sg : Dg Rb = (Sb Db) ? Sb : Db Yes, that's what I want. After giving it another thought, I see that it's not equivalent to bitwise OR, say MAX (1,2) = 2, wheres OR (1,2) = 3. Anyway, I would like to know if it's possible to use

Re: Displaying Strings in custom formats

2009-09-22 Thread Jens Alfke
If you generate HTML you can get better control over formatting using CSS. Or you can build the formatted text directly using NSAttributedString, although this can be a pain. --Jens {via iPhone} On Sep 22, 2009, at 7:56 AM, Arun arun...@gmail.com wrote: Hi All, I have a set of lines

Re: CoreData SQL tracing...

2009-09-22 Thread Sean McBride
On 9/22/09 9:23 PM, Brian Bruinewoud said: Sorry for asking this but I was unable to find this in the archives even though I know I read it here before. How can I turn on logging/tracing of the SQL statements issued by CoreData? I need this for an iPhone app running in the simulator. Perhaps

Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:

2009-09-22 Thread Sean McBride
On 9/22/09 11:00 PM, Graham Cox said: On 22/09/2009, at 10:40 PM, BareFeet wrote: NSLog(@setDataRows: count == %@, [newDataRows count]); Once I removed the NSLog line (or just the [newDataRows count] method), it works fine. Two followup questions: 1. Why can't I use the array count

Re: Core Data memory not freed after reset

2009-09-22 Thread Sean McBride
On 9/21/09 4:21 PM, Ben Trumbull said: If you're using an NSArrayController in Entity mode, you can turn on Use Lazy Fetching. You'll want to disable auto-rearrange content. Ben, May I ask, why turn off 'auto-rearrange content'? Is it not compatible with 'use lazy fetching'? Or does

Re: NSUndoManager vs @synthesize

2009-09-22 Thread Benjamin Rister
Pierre Bernard wrote: Do I still need to write my own accessors in order to perform NSUndoManager registration? Could my model objects observe themselves and register undoable changes in observeValueForKeyPath:ofObject:change:context: ? How does CoreData go about registering changes with the

Using radio buttons to set an image in an image view

2009-09-22 Thread Martin Hawkins
Hi,I want to display one of four images depending on the selection of a set of four radio buttons with tags set to 0,1,2 and 3. The images are in the project root with names one.jpg, two.jpg, etc. I have declared an action in MyDocument called chooseAction and the NSMatrix of radio buttons is

Controlling Spaces and retrieving information about the current Space?

2009-09-22 Thread Hippo Man
I'm fairly new to the Cocoa world and completely new to this mailing list. I hope that I'm posting this question to the correct forum. If not, I'd be grateful for a pointer to a more appropriate place to repost this. Before coming here, I tried to locate the answer I'm looking for on the net. I

Confused about the displaylink callback

2009-09-22 Thread Kenny Lövrin
Hi I am trying to learn a bit Core Video, and have read through the programming guide several times. In short, I want to use Core Video to display video, but I want to get the frames from ffmpeg. So far I have a very basic working setup, where it actually does display my frames by

Re: an app that never quits

2009-09-22 Thread Greg Reichow
The Apple iPhone Developer Forum is at- https://devforums.apple.com/community/iphone You will need to log in using your dev account. Best of luck with your application. While the lack of background processing is problematic for many applications, there is still a large variety of apps

Re: an app that never quits

2009-09-22 Thread Jens Alfke
On Sep 21, 2009, at 11:31 PM, Kyle Sluder wrote: On Mon, Sep 21, 2009 at 11:30 PM, Erick Calder e...@arix.com wrote: wow. ok. I guess that's not going to help much then. I must say that without daemons the range of applications possible seems rather quite narrow to me. Background

RTF in MultilineTextField

2009-09-22 Thread Arun
Hi, I have written a sample code which displays the contents of RTF file in Mutiline text filed. The RTF file has a text which is styled like a web-link. when i run the program, the link appears as a normal text. But if i click on the textfiled area it appears properly. why this is behaving like

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-22 Thread Eric Schlegel
On Sep 21, 2009, at 4:39 PM, Hippo Man wrote: Is there a way in Cocoa to programmatically query which Space the user is currently looking at? In other words, if I have six Spaces defined and Space 3 happens to be the one which is currently visible on my screen, how can I make some sort of

Re: drawing/masking one image with the alpha value from another

2009-09-22 Thread David Duncan
On Sep 21, 2009, at 9:32 PM, Roland King wrote: I'm trying to construct an image which is colored according to the alpha value of a different image. I've been hunting around the Quartz Core docs and I can't figure out a good way to do this. The motivation is to do something similar to what

Re: OR compositing operation?

2009-09-22 Thread David Duncan
On Sep 22, 2009, at 6:22 AM, Oleg Krupnov wrote: Hi, I'd like to draw in a graphics context in such a compositing mode: R = MAX(S, D) i.e. out of two colors (source and destination), the maximum color (channel-wise) was chosen. This is basically equivalent to ORing the colors. This is the

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-22 Thread Jesper Storm Bache
There is very little external control over Spaces. Be sure to file enhancement request radars. So far we have the following: 1) In 10.6 you can ask a window whether or not it is on the active Space ( [NSWindow isOnActiveSpace]) 2) CGWindow.h allows you to query for the space id

Suppressing Crash Reporter dialogs for a task

2009-09-22 Thread Mark Woods
I have an application that launches an NSTask and checks to see if it returned successfully. The task checks the validity of certain files and in some cases, the task could definitely crash if the data is corrupt - that is the whole purpose of launching a separate task. This is not a

Re: RTF in MultilineTextField

2009-09-22 Thread Jens Alfke
On Sep 22, 2009, at 9:12 AM, Arun wrote: I have written a sample code which displays the contents of RTF file in Mutiline text filed. The RTF file has a text which is styled like a web-link. when i run the program, the link appears as a normal text. But if i click on the textfiled area it

Re: Suppressing Crash Reporter dialogs for a task

2009-09-22 Thread Kyle Sluder
On Tue, Sep 22, 2009 at 9:47 AM, Mark Woods mwoods...@googlemail.com wrote: The task checks the validity of certain files and in some cases, the task could definitely crash if the data is corrupt - that is the whole purpose of launching a separate task. This is not a problem as the application

Re: Suppressing Crash Reporter dialogs for a task

2009-09-22 Thread Mark Woods
Easier said than done. It's QuickTime that's crashing. I'm calling canInitWithFile first and checking for errors with movieWithFile:error: but in certain instances it will still crash. On Sep 22, 2009, at 5:53 PM, Kyle Sluder wrote: On Tue, Sep 22, 2009 at 9:47 AM, Mark Woods

Re: Suppressing Crash Reporter dialogs for a task

2009-09-22 Thread Jens Alfke
On Sep 22, 2009, at 9:47 AM, Mark Woods wrote: However, when the task crashes, a Crash Reporter dialog appears which could be confusing for the user and ugly if several appear at once. Is there any way to suppress these messages and prevent them from appearing? I'm pretty sure there is,

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Matt Neuburg
On Tue, 22 Sep 2009 08:57:14 +0200, Michael S?ssner michael.suess...@utanet.at said: When I select an object in IB, the inspector does not display the outlet/action section. Is this a bug? I have installed Xcode on another computer and experienced the same behaviour. I am using Xcode3.2 and snow

Re: Using radio buttons to set an image in an image view

2009-09-22 Thread Matt Neuburg
On Tue, 22 Sep 2009 11:40:10 +0100, Martin Hawkins martin.hawk...@gmail.com said: I can set the initial value of the image by using actionImagePath = [NSMutableString stringWithString: @/Users/.../one.jpg]; // the full path is hard coded at the moment - worry about that later as the value path

UITableView Custom cell with image

2009-09-22 Thread Development
I have a UITableViewCell with a UIImageView that's 44X44 pixels. I'm loading three different tables with a total of around 200 images none of which are more than 100k. So. My problem is memory warnings that cause the app to quit quite unceremoniously. I have tried loading the image when the

Re: Suppressing Crash Reporter dialogs for a task

2009-09-22 Thread Alastair Houghton
On 22 Sep 2009, at 18:01, Jens Alfke wrote: On Sep 22, 2009, at 9:47 AM, Mark Woods wrote: However, when the task crashes, a Crash Reporter dialog appears which could be confusing for the user and ugly if several appear at once. Is there any way to suppress these messages and prevent them

Re: UITableView Custom cell with image

2009-09-22 Thread Rick Genter
On Sep 22, 2009, at 12:26 PM, Development wrote: I have a UITableViewCell with a UIImageView that's 44X44 pixels. I'm loading three different tables with a total of around 200 images none of which are more than 100k. So. My problem is memory warnings that cause the app to quit quite

Re: UITableView Custom cell with image

2009-09-22 Thread Ricky Sharp
Please post your code. One app I have displays a list of 1,089 items. Three rows are visible on the screen and each row displays an image of size 89 x 128. I use the standard method of reusing table cells and simply assign the image only when the cell is to be displayed. There is some

Re: drawing/masking one image with the alpha value from another

2009-09-22 Thread Ken Ferry
On Tue, Sep 22, 2009 at 9:20 AM, David Duncan david.dun...@apple.comwrote: On Sep 21, 2009, at 9:32 PM, Roland King wrote: I'm trying to construct an image which is colored according to the alpha value of a different image. I've been hunting around the Quartz Core docs and I can't figure

Re: UITableView Custom cell with image

2009-09-22 Thread Luke the Hiesterman
First, you should be reusing table cells as a basic first step. If you're not doing that, start now. Second, you should solve your stutter problem by returning the cell right away and asynchronously loading the image into the cell. If you don't hold up cell creation/ display on loading of

Re: Core Data memory not freed after reset

2009-09-22 Thread Ben Trumbull
On Sep 22, 2009, at 8:54 AM, Sean McBride wrote: On 9/21/09 4:21 PM, Ben Trumbull said: If you're using an NSArrayController in Entity mode, you can turn on Use Lazy Fetching. You'll want to disable auto-rearrange content. Ben, May I ask, why turn off 'auto-rearrange content'? Is it not

Re: Core Data memory not freed after reset

2009-09-22 Thread Sean McBride
On 9/22/09 1:59 PM, Ben Trumbull said: If you're using an NSArrayController in Entity mode, you can turn on Use Lazy Fetching. You'll want to disable auto-rearrange content. Ben, May I ask, why turn off 'auto-rearrange content'? Is it not compatible with 'use lazy fetching'? Or does

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Michael Süssner
Yeah, I also thought that the Xcode mailing list is the right one. But the list seams to be a little bit inactive. I wanted to know if anyone else has detected the same behaviour. To clarify, I have opened the identity view in the inspector panel and it does not display the add

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

2009-09-22 Thread dct
On Sep 21, 2009, Greg Guerin wrote: How do you know the original file at path0 contained several thousand bytes? Because I put them there: [hndl0 writeData:[NSData dataWithBytes:buffer length:lngth]]; and checked them: bytes = [hndl0 seekToEndOfFile]; Is there a possibility it

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Andy Lee
Are you having this problem with all objects or only instances of your own class? Did you use IBOutlet when you declared the outlets? Maybe you could show us your header file. Does it help if you force IB to re-read your header with File - Read Class Files...? --Andy On Sep 22, 2009,

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Bill Cheeseman
On Sep 22, 2009, at 5:06 PM, Michael Süssner wrote: I have opened the identity view in the inspector panel and it does not display the add outlet/action section after I have selected an object. In IB 3.2, this functionality was moved to the Library window. In the Library window, select

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Shawn Erickson
On Tue, Sep 22, 2009 at 2:06 PM, Michael Süssner michael.suess...@utanet.at wrote: Yeah, I also thought that the Xcode mailing list is the right one. But the list seams to be a little bit inactive. Which xcode list you looking at? I see tens of emails a day on the Xcode list. This is the

Re: FileManager Problem Post OS X 10.6 Installation

2009-09-22 Thread dct
___ 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.apple.com Help/Unsubscribe/Update your Subscription:

Re: NSManagedObject Initialization Methods Not Called

2009-09-22 Thread Richard Somers
On Sep 21, 2009, at 4:04 PM, Mike Abdullah wrote: More information please. What store type are you using? On 21 Sep 2009, at 20:12, Richard Somers wrote: I have a core data document based application. When a file on the disk is opened -awakeFromInsert and -awakeFromFetch are never called

Re: an app that never quits

2009-09-22 Thread Erick Calder
On Sep 21, 2009, at 11:31 PM, Kyle Sluder wrote: On Mon, Sep 21, 2009 at 11:30 PM, Erick Calder e...@arix.com wrote: wow. ok. I guess that's not going to help much then. I must say that without daemons the range of applications possible seems rather quite narrow to me. Background

Re: an app that never quits

2009-09-22 Thread Erick Calder
On Sep 22, 2009, at 3:01 AM, Greg Reichow wrote: The Apple iPhone Developer Forum is at- https://devforums.apple.com/community/iphone You will need to log in using your dev account. thanks for the link. are you using it? I see a Log in now button which, when I press, returns me to the

Re: an app that never quits

2009-09-22 Thread Erick Calder
On Sep 22, 2009, at 9:06 AM, Jens Alfke wrote: On Sep 21, 2009, at 11:31 PM, Kyle Sluder wrote: On Mon, Sep 21, 2009 at 11:30 PM, Erick Calder e...@arix.com wrote: wow. ok. I guess that's not going to help much then. I must say that without daemons the range of applications possible

Re: NSImage rotation regression?

2009-09-22 Thread Marco S Hyman
FYI: a while ago I asked about a possible NSImage rotation regression and Ken responded with: I dropped the code below in a test app, and it seemed to work fine on 10.6 with 90 as the number of degrees. Perhaps you could make a full test app that demonstrates the issue? In doing that I

Re: Strategies for tracking a tricky (typing) slowdown/lag bug

2009-09-22 Thread Keith Blount
Many thanks for the reply, Jens, much appreciated. Using sample via the Terminal proved very useful. Interestingly, while I was messing with the settings trying to get it to work, I found something while my app was supposedly idle before I even set it up ready to hammer away at the keys -

Re: Strategies for tracking a tricky (typing) slowdown/lag bug

2009-09-22 Thread Rick Genter
On Sep 22, 2009, at 3:51 PM, Keith Blount wrote: Many thanks again for the pointers. If anyone has any further suggestions for next steps in trying to locate the cause of such a tricky slowdown issue (as I say, the slow down only appears after typing a couple of thousand words, with the

Re: Strategies for tracking a tricky (typing) slowdown/lag bug

2009-09-22 Thread Jens Alfke
On Sep 22, 2009, at 3:51 PM, Keith Blount wrote: Initial tests suggest this has improved things a little, but I'm not confident it's the only cause. The way that typing would get slower and slower over time, and then speed up again once the app was quit and relaunched, means that I'm

Re: an app that never quits

2009-09-22 Thread Jens Alfke
On Sep 22, 2009, at 3:44 PM, Erick Calder wrote: one final recourse of a solution for me: is there such a thing as cron on the iPhone whereby I could schedule a bit of processing to occur every x seconds? No. The current policy on the OS is that 3rd party code does not execute unless

Re: an app that never quits

2009-09-22 Thread Julien Jalon
Note that when filing this kind of bug, it's always better to explain more precisely your use case (not just let me have background processes!) as it might help design a suited solution within the constraints of the device (same way Push notifications was proposed to solve many use cases) --

Getting content out of a WebView

2009-09-22 Thread Eddie Aguirre
I have a simple application which has a WebView and NSTextView and two buttons. Both views are editable. What I'd like to be able to do is edit in either view and then sync with the other view. I can do this in the direction from the NSTextView to the WebView but not vice versa. I'm

Re: NSImage rotation regression?

2009-09-22 Thread Rob Keniger
On 23/09/2009, at 8:46 AM, Marco S Hyman wrote: FYI: a while ago I asked about a possible NSImage rotation regression I didn't see any mention of this in the documentation or release notes. Did I miss it? Yep. Have a look at the AppKit release notes, specifically the section: NSImage:

automatically send the email from code using NSWorkspace

2009-09-22 Thread jon
I've set up some code to send an email from my app like so: [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString:eMailString]]; it works fine, but I want to go ahead and have it automatically send the email, rather than display the email on screen (ready to send)... Can someone

NSArrayController bindings: next hurdle.

2009-09-22 Thread Colin Howarth
Hi, just when I thought it was safe to go back into the water... So, I have an NSArrayController (in IB). Its Content Array is bound to an NSMutableArray (of 'Element') instance in my AppDelegate. If I alter an Element in a KVC way, then the Array Controller notices this and the NSTableView

Re: automatically send the email from code using NSWorkspace

2009-09-22 Thread Nick Zitzmann
On Sep 22, 2009, at 8:16 PM, jon wrote: it works fine, but I want to go ahead and have it automatically send the email, rather than display the email on screen (ready to send)... Can someone point me in the correct direction? Use NSAppleScript or the scripting bridge. There's some

Stability on Snow Leopard

2009-09-22 Thread Nick Rogers
Hi, The program which worked perfectly on Leopard, crashes frequently at various stages on Snow Leopard. Also it may or may not crash at the same stage on different runs, e.g. on bringing up a NSSavePanel in a sheet. What do I need to do to make it robust on Snow Leopard. Is it less

Re: NSArrayController bindings: next hurdle.

2009-09-22 Thread Kyle Sluder
On Tue, Sep 22, 2009 at 7:21 PM, Colin Howarth co...@howarth.de wrote: So, I have an NSArrayController (in IB). Its Content Array is bound to an NSMutableArray (of 'Element') instance in my AppDelegate. No. It's bound to a property of some object. Please be precise; NSMutableArray isn't

Re: Getting content out of a WebView

2009-09-22 Thread Colin Cornaby
I don't have example code handy, but I'd try parsing the DOM tree, which is abstracted by a series of Obj-C WebView classes. On Sep 22, 2009, at 5:53 PM, Eddie Aguirre wrote: I have a simple application which has a WebView and NSTextView and two buttons. Both views are editable. What I'd

Re: Stability on Snow Leopard

2009-09-22 Thread Kyle Sluder
This question is impossible to answer. My app crashes, why?! Your answer is in the crash logs, stack traces, logged unhandled exceptions… everywhere but this mailing list. If you have a crasher that you have investigated and think is not your fault, *then* you can ask someone to take a look at

Handling a File Drag to my Window

2009-09-22 Thread Peter Zegelin
I want to us e the whole window of my application as the drop target for files dragged onto it from the Finder but there are a couple of things I can't seem to figure out: I would like to show some sort of visual feedback. I tried subclassing the content view of the window thinking it

Re: an app that never quits

2009-09-22 Thread Erick Calder
On Sep 22, 2009, at 5:49 PM, Julien Jalon wrote: Note that when filing this kind of bug, it's always better to explain more precisely your use case (not just let me have background processes!) as it might help design a suited solution within the constraints of the device (same way Push

Re: an app that never quits

2009-09-22 Thread Erick Calder
On Sep 22, 2009, at 4:27 PM, Jens Alfke wrote: On Sep 22, 2009, at 3:44 PM, Erick Calder wrote: one final recourse of a solution for me: is there such a thing as cron on the iPhone whereby I could schedule a bit of processing to occur every x seconds? No. The current policy on the OS is

Re: an app that never quits

2009-09-22 Thread Rob Keniger
On 23/09/2009, at 1:06 PM, Erick Calder wrote: perhaps I an ask the question differently: if you wanted to be able to respond to physical events (say the location of the phone, or time of day, etc.) throughout the day in some unattended fashion, how would you do it? You can't. the

Re: NSArrayController bindings: next hurdle.

2009-09-22 Thread Colin Howarth
On 23 Sep, 2009, at 04:46, Kyle Sluder wrote: On Tue, Sep 22, 2009 at 7:21 PM, Colin Howarth co...@howarth.de wrote: So, I have an NSArrayController (in IB). Its Content Array is bound to an NSMutableArray (of 'Element') instance in my AppDelegate. No. It's bound to a property of some

Re: Handling a File Drag to my Window

2009-09-22 Thread Rob Keniger
On 23/09/2009, at 12:48 PM, Peter Zegelin wrote: I would like to show some sort of visual feedback. I tried subclassing the content view of the window thinking it would automatically hilite, but I can't get it to. Note I set focus ring to default in IB for this. Also the drag icon doesn't

Re: Handling a File Drag to my Window

2009-09-22 Thread Graham Cox
On 23/09/2009, at 12:48 PM, Peter Zegelin wrote: I would like to show some sort of visual feedback. I tried subclassing the content view of the window thinking it would automatically hilite, but I can't get it to. Note I set focus ring to default in IB for this. Also the drag icon doesn't

Re: Stability on Snow Leopard

2009-09-22 Thread Navneet Kumar
Hi, Thanks for the quick and appropriate reply. My intention was to get some general responses on two things: Memory Management in a program on SnowLeopard (strictly needed?) and the need for code signing. Of course, I'll need to tackle the crash situations individually, and they are a

Re: NSArrayController bindings: next hurdle.

2009-09-22 Thread Colin Howarth
... And, of course, the accessors are @synthesized in the @implementation. On 23 Sep, 2009, at 05:09, Colin Howarth wrote: On 23 Sep, 2009, at 04:46, Kyle Sluder wrote: On Tue, Sep 22, 2009 at 7:21 PM, Colin Howarth co...@howarth.de wrote: So, I have an NSArrayController (in IB). Its

Re: Stability on Snow Leopard

2009-09-22 Thread Bill Bumgarner
On Sep 22, 2009, at 8:16 PM, Navneet Kumar wrote: My intention was to get some general responses on two things: Memory Management in a program on SnowLeopard (strictly needed?) and the need for code signing. Memory management is always required. You can choose between retain/ release or

Re: automatically send the email from code using NSWorkspace

2009-09-22 Thread jon
great, found it, Thank you. do you (or someone) know how to get the current machine's default Email address for sending email? rather than typing it into a field like this. emailMessage.sender = [self.fromField stringValue]; thanks again, Jon. On Sep 22, 2009, at 8:35 PM, Nick

Re: NSArrayController bindings: next hurdle.

2009-09-22 Thread Kyle Sluder
On Tue, Sep 22, 2009 at 8:09 PM, Colin Howarth co...@howarth.de wrote: @property (assign) NSMutableArray  *elements; If you're not running with garbage collection, KABOOM. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSArrayController bindings: next hurdle.

2009-09-22 Thread Kyle Sluder
On Tue, Sep 22, 2009 at 9:17 PM, Colin Howarth co...@howarth.de wrote: Well *of course* I am now running with garbage collection... Typo, or perhaps I'm misinterpreting the sarcasm? I suppose I should read up on declared properties and garbage collection to try and understand what was

Re: an app that never quits

2009-09-22 Thread Erick Calder
I had a thought: how do alarms work? the application (the Clock) isn't running all the time, yet, 7am the alarm goes off... how did the Clock get itself started (without my permission)? and if you look at the alarms... there is no Clock window! it's just a message of some kind... so how

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Michael Süssner
I have the problem with every object even the one from the examples (Apple). I have instantiated an NSObject from the IB Library and then I've tried to add an outlet. Still, no outlet section in the inspector (identity). g Michael Am 22.09.2009 um 23:23 schrieb Andy Lee: Are you having

Re: an app that never quits

2009-09-22 Thread Bill Bumgarner
On Sep 22, 2009, at 9:30 PM, Erick Calder wrote: I had a thought: how do alarms work? the application (the Clock) isn't running all the time, yet, 7am the alarm goes off... how did the Clock get itself started (without my permission)? and if you look at the alarms... there is no Clock

Re: an app that never quits

2009-09-22 Thread PCWiz
There are few ways I know of that would make this possible. One way is a daemon, which is started every time the computer starts (or possibly when you log in). The daemon then runs in the background and provides notifications when necessary. Another way this is possible (a more commonly

Re: an app that never quits

2009-09-22 Thread Erick Calder
On Sep 22, 2009, at 9:30 PM, Bill Bumgarner wrote: On Sep 22, 2009, at 9:30 PM, Erick Calder wrote: I had a thought: how do alarms work? the application (the Clock) isn't running all the time, yet, 7am the alarm goes off... how did the Clock get itself started (without my permission)? and

  1   2   >