On Oct 9, 2009, at 8:57 PM, aaron smith wrote:
On Fri, Oct 9, 2009 at 6:52 PM, aaron smith
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
tried some different combinations o
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 exce
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 (Cocoa-dev@
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 h
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
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 wrote:
> Hello,
>
> I want to support Quick Look in my application, but still support 10.5.
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
[selectedPT
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:
http://developer.apple.com/mac/library/docu
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 insertNewObjectForEntityForName:@"p
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
if(RKCacheL
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 *en
How would that work with storing the instance variables?
Thanks,
Mitch
On Saturday, October 10, 2009, at 05:30AM, "Julien Jalon"
wrote:
>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
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 (Cocoa-dev@lists.apple.com
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
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
d
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 arrayWithContentsOf
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 arrayWithContentsOf
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
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
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 mak
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 ?
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] initWithDictionary:da
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 ma
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 n
On Sat, Oct 10, 2009 at 8:34 AM, jon 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. That is how it is
On Oct 10, 2009, at 5:40 AM, Mitchell Livingston
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 and continue on as n
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
On Sat, Oct 10, 2009 at 8:43 AM, Nick Rogers 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
> objectAtIndex:[tableViewPTList selecte
Ooops meant...
if (selectedPTVolume != nil)
{
volumeScanType = [selectedPTVolume volumeScanType];
[selectedPTVolume release];
[outlineViewData reloadData]
}
On Sat, Oct 10, 2009 at 9:21 AM, Shawn Erickson wrote:
if (selectedPTVolume != nil)
> {
> volumeScanType = [selectedPTVolum
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
On Saturday, October 10, 2009, at 12:18PM, "Kyle Sluder"
wrote:
>On Oct 10, 2009, at 5:40 AM, Mitchell Livingston
>wrote:
>
>> How would that work with storing the instance variables?
>
>1) Why are you concerned with QLPreviewPanel's instance variables?
>
It won't run on 10.5 with this vari
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 thi
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 proce
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 wa
On Sat, Oct 10, 2009 at 12:21 PM, Shawn Erickson 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 hidden in an accesso
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
On Sat, Oct 10, 2009 at 12:53 PM, jon 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
___
Co
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 a
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 proce
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 proc
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 - w
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.
Con
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 th
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 so
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 yo
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 w
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
On Sat, Oct 10, 2009 at 10:55 AM, jon 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 the disk for
On Sat, Oct 10, 2009 at 10:48 AM, jon 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 mi
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 load
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
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)
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 don
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, an
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 li
On Sat, Oct 10, 2009 at 11:08 AM, jon 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 process life), w
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 e
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 sub-syst
On Sat, Oct 10, 2009 at 12:04 PM, jon 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 back from this
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
On Sat, Oct 10, 2009 at 12:12 PM, jon 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 a website,
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 wrote:
>
>
> On Sat, Oct 10, 2009 at 12:12 PM, jon wrote:
>
>> I take th
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
Thanks Ken.
On Sat, Oct 10, 2009 at 12:05 AM, Ken Thomases wrote:
> On Oct 9, 2009, at 8:57 PM, aaron smith wrote:
>
>> On Fri, Oct 9, 2009 at 6:52 PM, aaron smith
>> wrote:
>>>
>>> Hey All, quick question.
>>>
>>> I'm trying to figure out how to stop untitled documents from opening
>>> when the
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,
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], maybe
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.
Cont
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 that
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
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 (C
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 (Cocoa-
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, 2009,
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 t
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
On Sat, Oct 10, 2009 at 2:56 PM, jon 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 CFNetwork or NSURL
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.
___
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 us
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 (Cocoa
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 th
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
__
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
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
called
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 oc
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 explain
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 bunch
-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 animatio
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
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
if(RKCach
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 advantag
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; o
Hello.
I have a window with 2 custom views, each view with their
corresponding controller.
Now on view one I have a list of users, this list its coming from core
data, now in the list when I select one element I want in the other
view show the detailed information about what the user select
91 matches
Mail list logo