Am 16.11.2009 um 07:14 schrieb Chris Carson:
> The first class is the model that submits asynchronous bulk reads to the USB
> device. The callback for these reads copies the received data from the buffer
> asynchronous filled by the request and into an NSData object that is
> allocated and add
Thanks Nick!!
I got it that pcap will be used to capture packets. What will be achieved
using IOKit?
My other queries are like:
1. Will packets captured using pcap contain (if parsed) information like
what application they belong to, , what particular document or tab (in case
of browers) they bel
Hello.
I'm making a custom NSView derived class and I need the view to have a fixed
width/height ratio at all times, specifically I would like the view to stay
square. I am trying to override the setFrame: method like this:
- (void)setFrame:(NSRect)frameRect {
// Keeps the frame rectang
On 16-Nov-09, at 12:11 PM, Ben Haller wrote:
I'm having difficulty setting tooltips on some views in code. This
should be a simple matter of calling setToolTip: on the views in
question, as far as I can tell from the docs, but that is not
working for me. I surfed the various lists for pr
On Nov 18, 2009, at 7:42 AM, Ben Haller wrote:
> On 16-Nov-09, at 12:11 PM, Ben Haller wrote:
>
>> I'm having difficulty setting tooltips on some views in code. This should
>> be a simple matter of calling setToolTip: on the views in question, as far
>> as I can tell from the docs, but that i
On Wed, Nov 18, 2009 at 12:22 AM, Ross Carter wrote:
> You mean when wrapping is turned off? You get that behavior for free. Try
> this:
>
> 1. Create a new project in XCode.
> 2. In the app delegate header, set up an IBOutlet to a NSTextView.
> 3. In interface Builder, add a NSTextView to the wi
On Nov 17, 2009, at 2:04 PM, Aaron Clarke wrote:
> Even if it doesn't crash, closing the NSWindow always results in the
> following error message.
>
> An instance 0x11b75230 of class MyWindow was deallocated while key value
> observers were still registered with it. Observation info was leaked, a
On Nov 17, 2009, at 1:04 PM, Aaron Clarke wrote:
> We have an application that runs fine on leopard (10.5) but occasionally
> crashes on snow leopard (10.6) when closing an NSWindow. Here is the
> backtrace for the crash:
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Re
On Nov 17, 2009, at 1:04 PM, Aaron Clarke wrote:
> We have an application that runs fine on leopard (10.5) but occasionally
> crashes on snow leopard (10.6) when closing an NSWindow. Here is the
> backtrace for the crash:
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Re
Follow-up to my own question:
I decided that since the year and month derived properties were only there for
fetch requests, the correct thing to do is to get rid of them and instead use
predicates that look for the corresponding date ranges. That works just as
well, and avoids the derived prop
On Nov 18, 2009, at 5:25 AM, Aashishk Tiwari wrote:
> 1. Will packets captured using pcap contain (if parsed) information like
> what application they belong to, , what particular document or tab (in case
> of browers) they belong, if it is a streaming data etc?
No, no, and no. Short of hacking
In the newly released "Cocoa design patterns" (Buck and Yacktman), the chapter
discussing Delegates includes an example, which in it's implementation file,
has the following method, which is defined/declared like this: ( I have
removed the actual definition)
- (float)_myBarShouldChangeValue:(
Henri,
Does setting your main window aspect ratio properties with
"setContentAspectRatio" not work. In my own code, I have something like:
[myWindow setContentAspectRatio: myImageSize] ,
where myImageSize is a variable of NSSize type (a pair of floats in a struct
that give the width and hei
> What APIs/library/Technology we should use that notifies us about network
> usages and also provides us with the data being transmitted.
>
> I have look in libpcap that pretty much gives the packets but i dont know
> how much it helps in notification kind of things.
I don't think there are any
On Nov 18, 2009, at 9:44 AM, Michael de Haan wrote:
> "Names of most private methods in the Cocoa frameworks have an underscore
> prefix (for example, _fooData ) to mark them as private. From this fact
> follow two recommendations.
>
> • Don’t use the underscore character as a prefix for
This is what i think from observing the applications apple released witch have
controls that are not in the tools palette.
> * Must work with localized content
That's already implemented in the controls used by apple in their
application.
> * Must work with accessibility
also alr
Hi
Could we customize the UITableView section header title color
programatically other than default one in a grouped table view ?
Thank you
Tharindu
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
You can provide a custom header view for each section through the
tableView's delegate. You can do whatever you want within that view.
Luke
On Nov 18, 2009, at 11:06 AM, Tharindu Madushanka wrote:
Hi
Could we customize the UITableView section header title color
programatically other than de
http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UITableViewDelegate_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40006942-CH3-SW3
Cheers,
Dave
On Nov 18, 2009, at 12:06 PM, Tharindu Madushanka wrote:
> Hi
>
> Could we customize the UITableView section header
I don't see a better list for Scripting Bridge — referrals welcome.
I am looking for a local-folder element in the Entourage application. If there
is none, I want to create it. This works fine on my 10.6 installation, but not
on my customer's 10.5. Both machines are Intel, running the same versi
On Nov 18, 2009, at 1:49 PM, Jens Alfke wrote:
This is unfortunately true. The danger is that if you add an _-
prefixed method to your class, it might conflict with a private
method declared in a superclass. If this happens your method will
override the internal one, and Really Bad Things wi
Hi,
I am developing an App with a table that will hold URL content. I want to
download that in the background and then have it update the table as it
arrives. I tried using
[self performSelectorInBackground:@selector(MakeURLRequest:)
withObject:UrlRequest];
but I can't get it to return an
On Nov 18, 2009, at 11:15 AM, Jim Correia wrote:
> This problem is just not restricted to private methods, or additions through
> categories. You can also run afoul of a namespace conflict with a public
> method in your subclass.
Yes; but this is less likely because Apple engineers add public
On Nov 18, 2009, at 11:21 AM, Mark Bateman wrote:
> I am developing an App with a table that will hold URL content. I want to
> download that in the background and then have it update the table as it
> arrives.
Don't do this using threads. Cocoa's networking APIs are asynchronous, so you
can
On Nov 18, 2009, at 2:32 PM, Jens Alfke wrote:
> On Nov 18, 2009, at 11:15 AM, Jim Correia wrote:
>
>> This problem is just not restricted to private methods, or additions through
>> categories. You can also run afoul of a namespace conflict with a public
>> method in your subclass.
>
> Yes; b
On Nov 18, 2009, at 11:15 AM, Jim Correia wrote:
> On Nov 18, 2009, at 1:49 PM, Jens Alfke wrote:
>
>> This is unfortunately true. The danger is that if you add an _-prefixed
>> method to your class, it might conflict with a private method declared in a
>> superclass. If this happens your meth
Mark Bateman wrote:
Can anyone point me in the right direction.
http://developer.apple.com/Mac/library/documentation/Cocoa/Conceptual/
URLLoadingSystem/Tasks/UsingNSURLConnection.html
-- GG
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.co
On Nov 18, 2009, at 2:14 AM, Sean McBride wrote:
> The docs for addObserver:forKeyPath:options:context: say "Neither the
> receiver, nor anObserver, are retained.". They don't comment on the
> garbage collected case specifically. Does any know for sure?
> Does calling this method add a strong ref
On Wed, Nov 18, 2009 at 11:13 AM, Fritz Anderson
wrote:
> Setting NSScriptingDebugLogLevel to 1 in the global, Entourage, and
> my-application defaults had no effect at all on my 10.6 machine. So I can't
> see whether the 10.6 core/crel is different.
You can turn on AEDebugSends/AEDebugReceives
A followup: One of my puzzlements was that the local folder "Archive" returned
NO from [folder exists], when my customer swore that an "Archive" folder was
there. I pressed him; the folder in place was named "Archives". So that was a
red herring.
I still am unable to insert a new folder under 1
On 11/17/09 9:02 PM, David Catmull said:
>I have an entity with a "date" property, and derived properties "year"
>and "month" (by having year/month methods in my NSManagedObject
>subclass). In a couple of different places, I fetch the entries from a
>particular year or month- the fetch requests's
It begins to look more and more that I'm out of luck...
To review, here is the NSLog of the failed core/crel event on 10.5:
Event = 'core'\'crel'{ 'kocl':'cFld', 'insh':'insl'{ 'kobj':'obj '{
'want':'cFld', 'from':'null'(), 'form':'indx', 'seld':'abso'($206C6C61$) },
'kpos':'end ' }, 'prdt':{
Sorry to have to post this again, but I have been unable to understand
why this isn't working.
I have an NSView with an NSPopUpButton within it. The NSPopUpButton is
of type 'Pull Down'. This NSView is in the toolbar of my application,
it looks just like the 'Action' button in the toolbar of XCode
On 18-Nov-09, at 8:40 AM, Eric Gorr wrote:
On Nov 18, 2009, at 7:42 AM, Ben Haller wrote:
Given the deafening silence on this, I'm putting in a Radar on the
problem (7404209) and moving on. :->
Have you tried reproducing the problem with a test application?
I think the reason for the deaf
Is anyone out there using WebViews in modal panels? If so, what are you doing
to get around it's issues with NSURLConnection? (Presuming it's still an issue
in Snow Leopard? Which it certainly seem like from what I've seen...)
Our current solution is to use a custom subclass of NSURLConnection
On 18 Nov 2009, at 19:04, Sandro Noël wrote:
> This is what i think from observing the applications apple released witch
> have controls that are not in the tools palette.
>
>> * Must work with localized content
> That's already implemented in the controls used by apple in their
> applic
On Nov 18, 2009, at 3:45 PM, SRD wrote:
> - (IBAction) readMenuSelection:(id) sender
> {
> NSMenu *projectMenu = [sender menu];
> NSLog(@"projectMenu = %@", projectMenu);
>
> NSMenuItem *menuItem = [sender selectedItem];
> NSLog(@"menuItem %@", menuItem);
>
On 11/18/09 2:15 PM, Jim Correia said:
>This problem is much less insidious than the category problem, but the
>potential does exist. (For both private and public methods.)
For the category case, you can set the environment variable
OBJC_PRINT_REPLACED_METHODS=YES.
You'll get something like this:
On 11/18/09 9:00 AM, Corbin Dunn said:
>Oh -- another thing. Does your subclass of NSCollectionView override:
>
> (void)viewWillMoveToWindow:(NSWindow *)window {
>
>but not call super? If not... call super! Your classes should always
>call super if it is defined in a superclass, unless you have a
I have a series of objects created periodically in my code which show no roots
under the GC Monitor in instruments, yet stubbornly refuse to be garbage
collected. I've tried forcing garbage collection and also clearing the stack in
various spots with objc_clear_stack(OBJC_CLEAR_RESIDENT_STACK).
Maybe I'm missing some things here, but hey; that's what I come to the
list for.
I'm not fully understanding the need for NSController's and/or what
they do.
Say I have an NSObject subclass:
(.h)
@interface TestObject : NSObject {
BOOL boolProp;
}
@property BOOL boolProp;
On Nov 18, 2009, at 12:00 , Corbin Dunn wrote:
On Nov 17, 2009, at 1:04 PM, Aaron Clarke wrote:
We have an application that runs fine on leopard (10.5) but
occasionally
crashes on snow leopard (10.6) when closing an NSWindow. Here is the
backtrace for the crash:
Program received signal E
Ben Haller wrote:
>>> Given the deafening silence on this, I'm putting in a Radar on the
>>> problem (7404209) and moving on. :->
>>
>> Have you tried reproducing the problem with a test application?
>
> I get the impression that others are not seeing it because it's a
> problem that spec
I wanted to add that my problem in the second part of my question has
been solved. The only reason it wasn't working was that graphView is
actually a CALayer, and doesn't automatically call -willChange and -
didChange. Doing that solves the issue.
However, my question becomes more strange, a
> Here your code indicates that the "Load" menu item was selected, and
> according to everything you show, "Load" does *not* have a submenu, so
> everything is working as expected, unless you aren't selecting "Load", in
> which case your problem isn't the same as you describe.
Apologies, I grab
On Nov 18, 2009, at 2:13 PM, Sean McBride wrote:
> What do you mean exactly by "derived properties"? Are they transient?
> Are they in your xcdatamodel? In any case, I believe your problem is
> that you can only fetch against properties that are in the persistent
> store ie in your xcdatamodel an
Aaron Clarke (clark...@gmail.com) on 2009-11-18 8:28 PM said:
>> Oh -- another thing. Does your subclass of NSCollectionView override:
>>
>> (void)viewWillMoveToWindow:(NSWindow *)window {
>>
>> but not call super? If not... call super! Your classes should always
>> call super if it is defined in
sometimes when i want to quickly jump to a method, the list of methods
will only display it's title rather than the actual list. this
usually happens when i have a lot of methods, and it only happens for
the last marks. how can i force it to show the list? and why does it
do this? it's complete
If you see how "Touch Methods" is indented with respect to "Animation Methods",
it would seem to indicate that you're missing a closing brace in your
animationDidStop:finished:context: method.
Dave
On Nov 18, 2009, at 10:24 PM, Chunk 1978 wrote:
> sometimes when i want to quickly jump to a met
ohhh! i get it now... i like to jump around while i'm still writing methods.
thanks for clearing that up :)
On Thu, Nov 19, 2009 at 12:27 AM, Dave DeLong wrote:
> If you see how "Touch Methods" is indented with respect to "Animation
> Methods", it would seem to indicate that you're missing a c
On 19/11/2009, at 11:44 AM, Chase Meadors wrote:
> However, my question becomes more strange, as now I have many working
> bindings systems in my code without any NSControllers. Binding to plain old
> NSObjects seems to be fine. What is the purpose of NSController?
NSObjectController and frie
On 18 Nov 2009, at 04:38, Henri Häkkinen wrote:
> I'm making a custom NSView derived class and I need the view to have a fixed
> width/height ratio at all times, specifically I would like the view to stay
> square. I am trying to override the setFrame: method like this...
Don't. Arbitrarily chan
52 matches
Mail list logo