Re: Binding to currently selected object in a list?

2009-10-10 Thread Ken Thomases
On Oct 9, 2009, at 5:08 PM, A B wrote: Is there a way to bind an ivar to the currently selected object of a list which is being represented in an NSTableView via bindings? Unfortunately there does not seem to be a selectedObject key (though there is one for selectedObjects). Binding to

Re: Document architecture - stop it from opening untitled documents?

2009-10-10 Thread Ken Thomases
On Oct 9, 2009, at 8:57 PM, aaron smith wrote: On Fri, Oct 9, 2009 at 6:52 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Hey All, quick question. I'm trying to figure out how to stop untitled documents from opening when the application first runs. I've been looking on google, and

re: [iPhone} Exception After Creating First Object

2009-10-10 Thread Steve Steinitz
Hello, I got a couple of private messages about breakpoints and stacktraces, which, of course, I had done before I posted my question. That's how I discovered that [mod processPendingChanges] led to an exception when adding to an empty database table. I learned a little more about the

Re: How to ease the burden on the Garbage Collector?

2009-10-10 Thread Gabriel Zachmann
Thanks for the response. So, is 20% CPU time for the GC thread normal? Yup, that shows about 20% (of a core) being spent in GC. Best regards, Gabriel. smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list

Fwd: UTIs and readFromURL/writeToURL

2009-10-10 Thread Sander Stoks
Hello, Suppose I have an application which can read and write images (using Image I/O). To make this known to the OS, I have to add stuff to my Info.plist, and wanted to do this using UTIs as I understand that's the new standard. However, I have a few problems here. First, do I really

Re: How to allocate and delegate; or how to keep GC and the static analyzer happy

2009-10-10 Thread Glen Low
All I have several cases of the following pattern in my code: - (void)start { [[Something alloc] initWithDelegate:self]; } - (void)finishWithSomething:(Something*)something { [something release]; } The intent of course is that the Something object calls back the caller with

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Julien Jalon
Replace all calls to [QLPreviewPanel sharedPreviewPanel] and other class calls to weak calls: [NSClassFromString(@QLPreviewPanel) sharedPreviewPanel]. On Sat, Oct 10, 2009 at 3:47 AM, Mitchell Livingston livings...@mac.comwrote: Hello, I want to support Quick Look in my application, but still

releasing an object

2009-10-10 Thread Nick Rogers
Hi, There is a instance variable in my AppController class named Volume. I'm doing alloc and initWithDictionary to get an instance of Volume. I have to do [selectedPTVolume retain]; when allocing to get it to work properly. When destroying this object to get a new one, I'm doing

Re: releasing an object

2009-10-10 Thread Graham Cox
On 10/10/2009, at 9:31 PM, Nick Rogers wrote: Shall I get its retainCount and then release it that many times? For heavens' sake, NO! Ignore retain counts. They are not reliable evidence of anything you can use. Instead, just follow the rules:

Removing an Object with A Certain Title from an NSTreeController.

2009-10-10 Thread Joshua Garnham
Hi, I am wondering how I could delete an object depending on it's title for the CoreData 'name' property I have. To Add an Object I use this code: NSManagedObjectContext *moc = [self managedObjectContext]; JGManagedObject *theParent = [NSEntityDescription

Re: Snow Leopard: unsupported PointerFunctions configuration was requested

2009-10-10 Thread Chris Idou
Below is the RegexKit code that causes the Snow Leopard error. After reading the doco, I don't feel very enlightened about what the unsupported configuration is, or what the solution might be. Can anyone give me a clue? + (void)load { RKAtomicMemoryBarrier(); // Extra cautious

Re: Removing an Object with A Certain Title from an NSTreeController.

2009-10-10 Thread Joshua Garnham
Ok, I'll post the actual code that I am using and is giving the problem. Here it is: for(NSString *title in oldTasks) { // Get the moc and prepare a fetch request for the required entity NSManagedObjectContext *moc = [self managedObjectContext]; NSEntityDescription

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Mitchell Livingston
How would that work with storing the instance variables? Thanks, Mitch On Saturday, October 10, 2009, at 05:30AM, Julien Jalon jja...@gmail.com wrote: ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: How to set checkbox state in TableView columnheader

2009-10-10 Thread Zhang Li
Thank you so much for you guys' help. Jerry's sample code is extremely helpful for a newbie like me. =) I'll try this out once I'm back to my office. And let you know the outcome once I get it.. ___ Cocoa-dev mailing list

NSURLRequest

2009-10-10 Thread DKJ
I've got an NSArray that I initialise with data from a plist stored on a remote webserver. I've been doing it like this: NSURL *url = [NSURL URLWithString:@http://www.server.com/data.plist;]; NSArray *myArray = [NSArray arrayWithContentsOfURL:url]; which has been working just

real verses Virtual memory

2009-10-10 Thread jon
I have an app that run's a process every 20 seconds during the day... is there a way to force it to use real memory rather than virtual? because it runs every 20 seconds, and is defaulting to normal memory allocation, it has a lot of disk swapping in and out, many many times during the

Re: NSURLRequest

2009-10-10 Thread Michael Dautermann
On Oct 10, 2009, at 7:36 AM, DKJ wrote: I've got an NSArray that I initialise with data from a plist stored on a remote webserver. I've been doing it like this: NSURL *url = [NSURL URLWithString:@http://www.server.com/ data.plist]; NSArray *myArray = [NSArray

Re: NSURLRequest

2009-10-10 Thread Ricky Sharp
On Oct 10, 2009, at 9:36 AM, DKJ wrote: I've got an NSArray that I initialise with data from a plist stored on a remote webserver. I've been doing it like this: NSURL *url = [NSURL URLWithString:@http://www.server.com/ data.plist]; NSArray *myArray = [NSArray

Re: real verses Virtual memory

2009-10-10 Thread Michael Dautermann
On Oct 10, 2009, at 7:37 AM, jon wrote: I have an app that run's a process every 20 seconds during the day... is there a way to force it to use real memory rather than virtual? because it runs every 20 seconds, and is defaulting to normal memory allocation, it has a lot of disk swapping

Re: real verses Virtual memory

2009-10-10 Thread jon
it loads a website, to see if there are changes to the website, it then does a lot of work, the large memory things, like the webView are just one instance, and are not deallocating... (uses just that one instance over and over again, not making new ones) so that i don't think is

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
Le 10 oct. 2009 à 17:24, jon a écrit : it loads a website, to see if there are changes to the website, it then does a lot of work, the large memory things, like the webView are just one instance, and are not deallocating... (uses just that one instance over and over again, not

Re: real verses Virtual memory

2009-10-10 Thread jon
exactly, I look at Activity monitor, disk Activity and i can see a spike of disk data read/writes every 20 seconds. Jon. On Oct 10, 2009, at 9:31 AM, Jean-Daniel Dupas wrote: What is real memory ? Do you want to address the RAM directly without any virtual to physical mapping ?

Re: releasing an object

2009-10-10 Thread Nick Rogers
Hi, Thanks for the reply. In AppController.h I have an ivar: Volume *selectedPTVolume; In a method in AppController, I have the following: NSMutableDictionary *data = [partitionListDictArray objectAtIndex: [tableViewPTList selectedRow]]; selectedPTVolume = [[Volume alloc]

Re: real verses Virtual memory

2009-10-10 Thread Michael Dautermann
On Oct 10, 2009, at 8:24 AM, jon wrote: it loads a website, to see if there are changes to the website, it then does a lot of work, the large memory things, like the webView are just one instance, and are not deallocating... (uses just that one instance over and over again, not

Re: Updating application info plist

2009-10-10 Thread Andreas Mayer
Am 10.10.2009 um 01:05 Uhr schrieb Rob Keniger: To do this, surely they must be rewriting the LSUIElement key in the app's own Info.plist while the app is running, right? Or is there another way to do this? I did this once, because there was no other way to switch between UIElement and

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
On Sat, Oct 10, 2009 at 8:34 AM, jon trambl...@mac.com wrote: is there a way to force it to use real memory rather than virtual? This is, as stated, nonsensical. Your process works in its own independent virtual memory space that is mapped to physical RAM as needed by the virtual memory system.

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Kyle Sluder
On Oct 10, 2009, at 5:40 AM, Mitchell Livingston livings...@mac.com wrote: How would that work with storing the instance variables? 1) Why are you concerned with QLPreviewPanel's instance variables? 2) The API is different between 10.5 and 10.6; you can't just drop in NSClassFromString

Re: releasing an object

2009-10-10 Thread Andreas Mayer
Am 10.10.2009 um 17:43 Uhr schrieb Nick Rogers: selectedPTVolume = [[Volume alloc] initWithDictionary:data]; [selectedPTVolume retain]; Read the memory management rules again. By calling alloc the retain count of the created object is one. There is no need to send it an additional retain

Re: releasing an object

2009-10-10 Thread Shawn Erickson
On Sat, Oct 10, 2009 at 8:43 AM, Nick Rogers roger...@mac.com wrote: Hi, Thanks for the reply. In AppController.h I have an ivar: Volume *selectedPTVolume; In a method in AppController, I have the following: NSMutableDictionary *data = [partitionListDictArray

Re: releasing an object

2009-10-10 Thread Shawn Erickson
Ooops meant... if (selectedPTVolume != nil) { volumeScanType = [selectedPTVolume volumeScanType]; [selectedPTVolume release]; [outlineViewData reloadData] } On Sat, Oct 10, 2009 at 9:21 AM, Shawn Erickson shaw...@gmail.com wrote: if (selectedPTVolume != nil) { volumeScanType =

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Adam R. Maxwell
On Oct 10, 2009, at 9:18 AM, Kyle Sluder wrote: 2) The API is different between 10.5 and 10.6; you can't just drop in NSClassFromString and continue on as normal. It works fine for me. I believe this comment only applies if you were foolish enough to link against the private framework in

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Mitchell Livingston
On Saturday, October 10, 2009, at 12:18PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Oct 10, 2009, at 5:40 AM, Mitchell Livingston livings...@mac.com wrote: How would that work with storing the instance variables? 1) Why are you concerned with QLPreviewPanel's instance variables? It

Re: real verses Virtual memory

2009-10-10 Thread jon
no, no control over the website, but on webView i turned off all the java script and flash and stuff, so that helps with the speed, not with it using virtual memory every 20 seconds, and it does need to be 20 seconds. Jon. On Oct 10, 2009, at 9:44 AM, Michael Dautermann wrote: Is

Re: real verses Virtual memory

2009-10-10 Thread Chris Ridd
On 10 Oct 2009, at 17:44, jon wrote: no, no control over the website, but on webView i turned off all the java script and flash and stuff, so that helps with the speed, not with it using virtual memory every 20 seconds, and it does need to be 20 seconds. So if you change your

Re: real verses Virtual memory

2009-10-10 Thread jon
Ok, let me re-word it then, is there a way i can keep a process from using Disk writes as a form of it's own memory use? I already know that it is a memory thing since the program never uses the disk to write out any files. (during the process)... nor use the disk in any other

Re: releasing an object

2009-10-10 Thread Sherm Pendley
On Sat, Oct 10, 2009 at 12:21 PM, Shawn Erickson shaw...@gmail.com wrote: Anyway the amount of code you have posted leave to much out to understand all that may be wrong with your memory management. The code does show one common anti-pattern - calls to -retain and -release that should be

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Adam R. Maxwell
On Oct 10, 2009, at 9:31 AM, Adam R. Maxwell wrote: On Oct 10, 2009, at 9:18 AM, Kyle Sluder wrote: 2) The API is different between 10.5 and 10.6; you can't just drop in NSClassFromString and continue on as normal. It works fine for me. I believe this comment only applies if you were

Re: real verses Virtual memory

2009-10-10 Thread Sherm Pendley
On Sat, Oct 10, 2009 at 12:53 PM, jon trambl...@mac.com wrote: there are no files being accessed,  only the webView WebView can access files on its own. Have you disabled cacheing? sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net

Re: Removing an Object with A Certain Title from an NSTreeController.

2009-10-10 Thread Quincey Morris
On Oct 10, 2009, at 05:28, Joshua Garnham wrote: NSPredicate *predicate = [NSPredicate predicateWithFormat:@title IN %d, oldTasks]; %d? oldTasks is a NSArray. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
Le 10 oct. 2009 à 18:53, jon a écrit : Ok, let me re-word it then, is there a way i can keep a process from using Disk writes as a form of it's own memory use? I already know that it is a memory thing since the program never uses the disk to write out any files. (during the

Re: real verses Virtual memory

2009-10-10 Thread Bill Bumgarner
On Oct 10, 2009, at 9:53 AM, jon wrote: Ok, let me re-word it then, is there a way i can keep a process from using Disk writes as a form of it's own memory use? I already know that it is a memory thing since the program never uses the disk to write out any files. (during the

Re: Binding to currently selected object in a list?

2009-10-10 Thread A B
Ken, Thank you for the well-expressed response. I understand both options as you've explained them and will try them both to see which ones I end up having a better feel for. I may have to go for the second example as I think that it will get executed in a more deterministic order earlier -

Re: Old-style (carbon?) blue generic view shows up under Logic

2009-10-10 Thread Stephen Blinkhorn
On 10 Oct 2009, at 01:14, tahome izwah wrote: Yes, actually it does as of version 8.0.5 Hooray, where's the champagne! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: real verses Virtual memory

2009-10-10 Thread jon
ok thanks, i was pretty sure it is normal behavior i am only asking if there is away around that particular behavior, and your answer was what i figured might be the case... so i am a little clearer, it is normal for apps to use disk IO in the way we are describing, even if

Re: real verses Virtual memory

2009-10-10 Thread Greg Guerin
jon write: there are no files being accessed, only the webView that is it's source of data it's only source. it works on that data, finishes, and does nothing for 20 more seconds. (a trigger can happen, but even if there was no trigger, the disk writes are there) Consider using

Re: real verses Virtual memory

2009-10-10 Thread jon
I could use an explanation then, if you go into activity monitor you will see a heading of real memory and virtual memory. specifically for all the current Processes.. what does Apple mean by real memory?in that, I might see why you asked the question?and why you think

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
Jon, please use Instruments.app (and/or various related tools; Activity Monitor.app, Shark.app, sample, top, fs_usage, vm_stat, vmmap/vmmap64, etc.) to understand what your process it doing both in terms of IO, memory utilization/allocations and even CPU time. Using those tools you can understand

Re: real verses Virtual memory

2009-10-10 Thread jon
oh yes, i plan on optimization, but this was not the original question, not one of how should i optimize, it was one of can i keep my process from using Disk I0, as a means of it's memory use?. to save on wear and tear of the disk for this particular process. On Oct 10, 2009, at

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
On Sat, Oct 10, 2009 at 10:55 AM, jon trambl...@mac.com wrote: oh yes, i plan on optimization, but this was not the original question, not one of how should i optimize, it was one of can i keep my process from using Disk I0, as a means of it's memory use?. to save on wear and tear of

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
On Sat, Oct 10, 2009 at 10:48 AM, jon trambl...@mac.com wrote: I could use an explanation then, if you go into activity monitor you will see a heading of real memory and virtual memory. specifically for all the current Processes.. what does Apple mean by real memory?in that, I

Re: real verses Virtual memory

2009-10-10 Thread jon
Hi Bill, in this theme of normal behavior, maybe this would make what i'm asking more clear. in an exercise of thought, if you wrote an app, and the only thing it did was put up a window permanently (for the run of it's process life), with a single webview in it, and hardwired a

Re: real verses Virtual memory

2009-10-10 Thread jon
ok, I have Activity monitor open, particularly to the disk activity tab, and the IO checked, as i said before, and i can see Disk writes every 20 secs.is there a clearer way to demonstrate that Disk IO is happening? am i fulling my self by looking at this tool? Jon. On Oct 10,

Re: Old-style (carbon?) blue generic view shows up under Logic

2009-10-10 Thread Stephen Blinkhorn
On 10 Oct 2009, at 11:20, Stephen Blinkhorn wrote: On 10 Oct 2009, at 01:14, tahome izwah wrote: Yes, actually it does as of version 8.0.5 Hooray, where's the champagne! sorry, wrong list. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: real verses Virtual memory

2009-10-10 Thread Alex Kac
If it was using a web cache, then yes. A webview uses webkit. Which uses URL caches and web caches. There are many things going on here. Way more than just one little view. It could simply be checking for the data in a cache, for example. You don't know because its not your code. I just

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
No, Activity Monitor as not a developer tool. As I said (and other too), uses proper tools. Instrument, may be a good starting point. Le 10 oct. 2009 à 20:12, jon a écrit : ok, I have Activity monitor open, particularly to the disk activity tab, and the IO checked, as i said before, and

Re: real verses Virtual memory

2009-10-10 Thread jon
ahh, ok thanks, that helps a lot. Jon. On Oct 10, 2009, at 12:30 PM, Alex Kac wrote: If it was using a web cache, then yes. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
On Sat, Oct 10, 2009 at 11:08 AM, jon trambl...@mac.com wrote: Hi Bill, in this theme of normal behavior, maybe this would make what i'm asking more clear. in an exercise of thought, if you wrote an app, and the only thing it did was put up a window permanently (for the run of it's

Re: real verses Virtual memory

2009-10-10 Thread jon
thanks for doing that, it helped, cacheing hmmm... i don't think there is away around this, i need a fresh load to see if the data has changed each time at the website.It appears that disk IO is here to stay. Jon. On Oct 10, 2009, at 12:57 PM, Shawn Erickson wrote: Which is

Re: real verses Virtual memory

2009-10-10 Thread jon
oh wait, that means i can turn off cacheing, I at least can see if that will help, I'll go read up on how to turn off cacheing.. Jon. On Oct 10, 2009, at 12:57 PM, Shawn Erickson wrote: Which is exactly what I expected (and others) given the fact that by default the URL loading

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
On Sat, Oct 10, 2009 at 12:04 PM, jon trambl...@mac.com wrote: thanks for doing that, it helped, cacheing hmmm... i don't think there is away around this, i need a fresh load to see if the data has changed each time at the website.It appears that disk IO is here to stay. Stepping

Re: real verses Virtual memory

2009-10-10 Thread jon
I take the info off the website, data if you like... data that changes or could change at any given time, every second even and process it, and trigger an event if the data is to my liking. how would i get the data off a website, formated in the only way i know it? which is

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
On Sat, Oct 10, 2009 at 12:12 PM, jon trambl...@mac.com wrote: I take the info off the website, data if you like... data that changes or could change at any given time, every second even and process it, and trigger an event if the data is to my liking. how would i get the data off

Re: real verses Virtual memory

2009-10-10 Thread Shawn Erickson
I meant to ask if you are accessing the HTTP or using WebKit's DOM API to get at the pages content? Basically how are using using WebView to access the data you need. -Shawn On Sat, Oct 10, 2009 at 12:25 PM, Shawn Erickson shaw...@gmail.com wrote: On Sat, Oct 10, 2009 at 12:12 PM, jon

Re: real verses Virtual memory

2009-10-10 Thread Jens Alfke
A couple of points… [1] Yes, it is possible to allocate wired memory that is forced to stay in physical RAM and never be paged to disk. But this ability is pretty much used only by low-level software like kernel extensions, device drivers, and real-time audio processors. These are things

Re: Document architecture - stop it from opening untitled documents?

2009-10-10 Thread aaron smith
Thanks Ken. On Sat, Oct 10, 2009 at 12:05 AM, Ken Thomases k...@codeweavers.com wrote: On Oct 9, 2009, at 8:57 PM, aaron smith wrote: On Fri, Oct 9, 2009 at 6:52 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Hey All, quick question. I'm trying to figure out how to stop untitled

Re: real verses Virtual memory

2009-10-10 Thread Thomas Wetmore
Please take this off list. Thanks, Tom Wetmore On Oct 10, 2009, at 3:28 PM, Shawn Erickson wrote: I meant to ask if you are accessing the HTTP or using WebKit's DOM API to get at the pages content? Basically how are using using WebView to access the data you need. -Shawn On Sat, Oct 10,

Re: real verses Virtual memory

2009-10-10 Thread jon
ok, i'll do research on these.. Jon. On Oct 10, 2009, at 1:25 PM, Shawn Erickson wrote: It sounds like you need to get at the HTTP content itself and pull data out of that, right? If all you need is the HTTP content you can drop down to things like Foundation's URL Loading System [1],

Re: real verses Virtual memory

2009-10-10 Thread jon
using DOM, Jon. On Oct 10, 2009, at 1:28 PM, Shawn Erickson wrote: using WebKit's DOM API to get at the pages content? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: How to allocate and delegate; or how to keep GC and the static analyzer happy

2009-10-10 Thread Jens Alfke
On Oct 10, 2009, at 2:25 AM, Glen Low wrote: Not necessarily. In a pathological but presumably legit case, whatever happens in initDelegate: might only form a weak reference to the Something object, thus the Something object would be subject to GC. That's true, although unlikely. In

Re: real verses Virtual memory

2009-10-10 Thread jon
oh... that is good to know... hmm, well it looks like i need to go lower in the mechanism, stuff i don't know anything about, so i'll do research on the best way to get the info off the website at a lower level. Jon. On Oct 10, 2009, at 1:33 PM, Jens Alfke wrote: Many large websites

Re: How to ease the burden on the Garbage Collector?

2009-10-10 Thread Jens Alfke
On Oct 10, 2009, at 1:14 AM, Gabriel Zachmann wrote: So, is 20% CPU time for the GC thread normal? That's a lot more than I'd expect based on what you're doing. Either you've got code you haven't shown us that's allocating a ton of objects during the animation, or some system framework

Re: real verses Virtual memory

2009-10-10 Thread Jens Alfke
On Oct 10, 2009, at 12:35 PM, Thomas Wetmore wrote: Please take this off list. Why? This seems like a relevant discussion for cocoa-dev. Just because you're not interested in it doesn't make it off-topic. —Jens___ Cocoa-dev mailing list

Re: real verses Virtual memory

2009-10-10 Thread jon
wait, if CFNetwork is doing the caching, I would need to go lower to avoid it? what would i use to get html or xml type of info off the website, without giving the website pause for what i am doing? (or best guess on what a website might consider bad behavior) Jon. On Oct 10,

Re: real verses Virtual memory

2009-10-10 Thread jon
oh i see (too late for that last post of mine) that you are recommending NSURLConnection... I'll look into that... You are right, i am probably not needing WebView, i only am using it, because that is what i founddrives me crazy the documentation... it is there, but you have

capturing special keys when focused in an NSTextField

2009-10-10 Thread aaron smith
Quick question - I have a window that I run as a sheet, which contains an NSTextField to enter a message. I have the window setup to close the sheet when the Escape key is pressed, however, when the text field is focused I can't figure out how to respond to these types of special keys. I've tried

Re: real verses Virtual memory

2009-10-10 Thread Stephen J. Butler
On Sat, Oct 10, 2009 at 2:56 PM, jon trambl...@mac.com wrote: wait,  if CFNetwork is doing the caching,   I would need to go lower to avoid it? If I load CNN.com right now, I fetch the HTML page, plus at least 127 image, CCS, and javascript files. So if you use something more low level, like

Re: real verses Virtual memory

2009-10-10 Thread I. Savant
On Oct 10, 2009, at 3:35 PM, Thomas Wetmore wrote: Please take this off list. That's an awfully presumptuous demand, don't you think? It's a relevant and interesting Cocoa topic. I've been following it with interest and it's quite obvious others have as well. -- I.S.

Re: real verses Virtual memory

2009-10-10 Thread Jens Alfke
On Oct 10, 2009, at 12:41 PM, jon wrote: oh... that is good to know... hmm, well it looks like i need to go lower in the mechanism, stuff i don't know anything about, so i'll do research on the best way to get the info off the website at a lower level. RSS or Atom feeds are often

Re: real verses Virtual memory

2009-10-10 Thread jon
that looks promising... thanks, Jon. On Oct 10, 2009, at 3:26 PM, Jens Alfke wrote: You can check the Last-Modified and ETag headers in the NSHTTPURLResponse object and compare them to what you got last time; ___ Cocoa-dev mailing list

Re: real verses Virtual memory

2009-10-10 Thread Jens Alfke
On Oct 10, 2009, at 1:01 PM, jon wrote: drives me crazy the documentation... it is there, but you have to know what to look for before you ever go down the correct tangent. There's certainly a lot of stuff, and it takes a while to learn what's in there. :/ The good part is that all

Re: real verses Virtual memory

2009-10-10 Thread jon
i was using a notification that was standard that told me when the page finished loading... does this have the same sort of mechanism? (or need it) when fetching the page? On Oct 10, 2009, at 3:26 PM, Jens Alfke wrote: If you can't use a feed, use NSURLRequest to fetch the page

Re: capturing special keys when focused in an NSTextField

2009-10-10 Thread Jens Alfke
On Oct 10, 2009, at 1:13 PM, aaron smith wrote: Quick question - I have a window that I run as a sheet, which contains an NSTextField to enter a message. I have the window setup to close the sheet when the Escape key is pressed, however, when the text field is focused I can't figure out how to

Re: real verses Virtual memory

2009-10-10 Thread Jens Alfke
On Oct 10, 2009, at 2:54 PM, jon wrote: i was using a notification that was standard that told me when the page finished loading... does this have the same sort of mechanism? (or need it) when fetching the page? NSURLConnection has a delegate object you can set, which will get

re: [iPhone} Exception After Creating First Object

2009-10-10 Thread Ben Trumbull
I got a couple of private messages about breakpoints and stacktraces, which, of course, I had done before I posted my question. That's how I discovered that [mod processPendingChanges] led to an exception when adding to an empty database table. I learned a little more about the exception. It

Re: Drawing NSImageView Over NSOpenGLview

2009-10-10 Thread James W. Walker
On Oct 10, 2009, at 1:26 PM, Steven Yiqiang Nie wrote: I'm new into opengl development on mac. Currently, I'm looking for a way to draw a NSImageView over NSOpenglView. I googled it, and it seems like I need to put the opengl thing into layer. I don't understand this, Could someone

Detecting when sheet has finished appearing

2009-10-10 Thread Squ Aire
A sheet animates into view. I want to detect it when this animation is complete. There are certain things (like a progressbar) that I wish to start only when the sheet has actually finished appearing on the screen. I don't want the progress bar to start before that. All I can find are a

Re: Detecting when sheet has finished appearing

2009-10-10 Thread BravoBug Software
-beginSheet methods return once the sheet has finished animating (IIRC). If you call -beginSheet you can add the code you want to execute after the sheet has been displayed immediately after that (but before any modal calls such as -runModalForWindow). The code will execute after the sheet

Re: CoreData Bug? (SQLite vs XML) + isolated reproducible case

2009-10-10 Thread Milen Dzhumerov
Hi all, Coming back to my original question (http://www.cocoabuilder.com/archive/message/cocoa/2009/9/13/244940 ), I isolated a reproducible case whereby CoreData loses a relationship on save (only when using SQLite). Link to the sample project is included below (check out the README for an

Fw: Snow Leopard: unsupported PointerFunctions configuration was requested

2009-10-10 Thread Chris Idou
Below is the RegexKit code that causes the Snow Leopard error. After reading the doco, I don't feel very enlightened about what the unsupported configuration is, or what the solution might be. Can anyone give me a clue? + (void)load { RKAtomicMemoryBarrier(); // Extra cautious

Should I try to avoid loading principal class of plug-in?

2009-10-10 Thread Rick Mann
I'm working on a plug-in-based app. While I have to scan all of the plug-ins and load some information from their info.plists, I don't necessarily need to load any of the code until a plug-in is actually used. My main question is, is it worth it to do this? It seems like that's one

Re: How to allocate and delegate; or how to keep GC and the static analyzer happy

2009-10-10 Thread Glen Low
On 10/10/2009, at 12:29 PM, Jens Alfke wrote: On Oct 8, 2009, at 7:33 PM, Glen Low wrote: 1. The code is not GC friendly as between the end of start and the beginning of finishWithSomething, there are no references to the object, so it may be collected. There must be references to it;