Hi,
I am using New IOHIDManager APIs, IOHIDManagerRegisterDeviceMatchingCallback
and IOHIDManagerRegisterDeviceRemovalCallback to get notified for Pluggedin
and Removed. Whenever I pluggin the device, I found that the
DeviceMatchingCallback method called twice always. May I know what could be
the
On 22/12/2009, at 10:22 AM, Rich E wrote:
> Hi,
>
> I am new to Cocoa and Objective-C both, but I need the two in order to get
> tablet functionality into one of my favorite applications (Puredata) on Mac
> OS X. First off, I know that you can get tablet event data through the
> Carbon API, but
Le 22 déc. 2009 à 10:56, Graham Cox a écrit :
>
> On 22/12/2009, at 10:22 AM, Rich E wrote:
>
>> Hi,
>>
>> I am new to Cocoa and Objective-C both, but I need the two in order to get
>> tablet functionality into one of my favorite applications (Puredata) on Mac
>> OS X. First off, I know that y
On 22/12/2009, at 9:16 PM, Jean-Daniel Dupas wrote:
>> The Carbon Event stuff is available in 64-bit, as far as I'm aware. Cocoa is
>> built on it, so these lower-level parts of Carbon are very likely to remain
>> available in 64-bit. It's mostly the higher level stuff, such as UI and
>> legac
On 22.12.2009, at 00:22, Rich E wrote:
> I learn best by examples, does anyone know of any existing C applications
> that make use of Cocoa or Objective-C? Else, any advice on how to combine
> these two with a host written in C?
As Graham said, since Objective C is based on plain C (even more s
On Dec 21, 2009, at 22:02, Gerriet M. Denkmann wrote:
>
> I am trying to bind "editable" of an NSTableColumn to ObjectController
> tabView.selectedIndex
> (The tab view has two items: Read and Edit. When the first item is selected,
> my table column should not be editable).
>
> But I am told:
On 22 Dec 2009, at 16:20, Jerry Krinock wrote:
> On 2009 Dec 21, at 21:05, Gerriet M. Denkmann wrote:
>
>> But when I use:
>> [ arrayController1 setFilterPredicate: "aValue BEGINSWITH[n] "a" AND ANY
>> theBs.bValue == "xx""];
>> I get an exeption:
>>
>> HIToolbox: ignoring exception '[<_NSFau
The last few days, I've seen this message in the console when I launch an app
I'm working on:
__CFServiceControllerBeginPBSLoadForLocalizations timed out while talking to pbs
The message also sometimes appears again a few minutes later. It appears in
the regular "Console Messages" in Console.a
On 22.12.2009, at 02:35, Peter Ammon wrote:
> To get Carbon's notion of the focus, you can do this:
>
>HIViewRef focusedView = NULL;
>HIViewGetFocus(GetUserFocusWindow(), &focusedView, NULL);
>
> To get Cocoa's notion, you would write:
>
>NSResponder *fr = [[NSApp keyWindow] firstRes
Thanks alot, this got me started in the right direction. I still have fine
tuning I need to do to get the size and draw point perfect but with some
adjustments to the code I have it mostly working.
if any one wants to see I can post the new code.
On Dec 21, 2009, at 10:23 PM, Henry McGilton (Bo
On Dec 21, 2009, at 8:02 PM, Development wrote:
> As near as I can tell, no matter what I do, the image itself, not accounting
> for the shadow, is drawn in the upper left corner. this causes a negative
> shadow, or one to the upper left, to be cut off by the edge of the context.
> I have atte
I think I've gotten on the right track. Two issues. One I needed to add the
spread * pi to the height and width. That made a huge difference. Thank you for
the direction it helped a lot. Given the time to fine tune it exactly I think i
might finally have this. I kind of didn't really realize it
How do you inspect or print the description of a Core Graphics object?
--Richard
___
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
I have a view which controls it's UI when rotated. However, if there is a
subView in place, it rotates and I'd like to control it's UI too. In my
subView the willAnimateRotationToInterfaceOrientation doesn't get fired. I
set up the shouldAutorotateToInterfaceOrientation. Does my main view need to
c
Thank you all for the replies.
Here's my final plan:
(1) Have separate nibs for each language. I agree with those that say you
cannot have a one-size-fits-all layout. Each nib will thus carry layout, font
size, style, etc. that makes sense for a particular language.
I've already "pseudo-loca
What I have always had to do is rotate the new subview manually when it is
added to the main view. I don't know if it's the right answer but it is what
I've done.
On Dec 22, 2009, at 10:51 AM, Eric E. Dolecki wrote:
> I have a view which controls it's UI when rotated. However, if there is a
> s
On Dec 22, 2009, at 12:51 PM, Eric E. Dolecki wrote:
> I have a view which controls it's UI when rotated. However, if there is a
> subView in place, it rotates and I'd like to control it's UI too. In my
> subView the willAnimateRotationToInterfaceOrientation doesn't get fired. I
> set up the shoul
Well - the subView is really a "settings" view - so it can be called up at
any time. And of course the user can rotate the device around while it's
already being viewed. So I suppose I can call a method in my subview from
the willAnimateRotationToInterfaceOrientation:duration in the
UIViewControlle
Ok - I am doing this in my view controller which works better:
- (IBAction) displayInfo:(id)sender {
myInfoView = [[InfoViewController alloc] initWithNibName:@"InfoViewController"
bundle:[NSBundle mainBundle]];
myInfoView.view.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin |
UIViewAuto
On Mon, Dec 21, 2009 at 10:37 PM, Michael Ash wrote:
> On Tue, Dec 22, 2009 at 8:54 AM, Lorenzo Thurman
> wrote:
> > Why can't iPhone apps use GC? Is it resources? Performance? Some
> combination
> > of the two or other reasons altogether?
> > Just curious, thanks.
>
> I know that this will be u
Lately I've been getting errors like these with my app:
2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** -[NSRecursiveLock unlock]: lock
( '(null)') unlocked when not locked
2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** Break on _NSLockError() to debug.
2009-12-21 13:07:48.437 TwitMenu[2512:4103]
Scrap that, I managed to find where the problem is happening. Debugger:
http://img709.imageshack.us/img709/9758/screenshot20091222at115.png
I didn't know that NSInvocationOperation used NSRecursiveLock. But this still
doesn't really help me understand *why* I'm getting these errors. The use of
When I hit the "+" button on a row in NSRuleEditor, a new row is created. How
can I take influence on the criteria used for that row.
It seems NSRuleEditor defaults to selecting the first criterion sequentially
from the list of possible values. I would much rather have the new row match
the row
On Tue, 22 Dec 2009 09:56:33 +1100, Graham Cox
said:
>Regarding the use of different completion methods based on manipulating some
common root name, I think that's a bit strange, misguided even.
But when the kind of situation that calls for it arises, it might seem very
natural and elegant. I'm j
Do you have an old, unfixed version of your nib in version control
somewhere? (The answer should be "yes;" if not, you might want to
reconsider your approach to version control for the sake of your own
sanity.)
If so, do the same thing you did, confirm that it causes the same
problem, and
On Tue, 22 Dec 2009 12:51:35 -0500, "Eric E. Dolecki"
said:
>I have a view which controls it's UI when rotated. However, if there is a
>subView in place, it rotates and I'd like to control it's UI too. In my
>subView the willAnimateRotationToInterfaceOrientation doesn't get fired. I
>set up the sh
Hello,
NSAttributedString has proven to be unsafe in many ways for use on a
secondary thread in our own applications. We were trying to do much
the same thing, get the size of a string from it. But it turns out
(obviously in retrospect) that it needs to use the font/GUI systems to
do this
Yeah sounds like the exact same problem I'm having. The problems aren't
consistent at all, it just happens once every few thousand strings.
Is there any easy way to execute a portion of code on the main thread without
going through the mess of delegates and selectors?
Independent Cocoa Develope
On Dec 22, 2009, at 12:58 PM, Matt Neuburg wrote:
> On Tue, 22 Dec 2009 09:56:33 +1100, Graham Cox
> said:
>> Regarding the use of different completion methods based on manipulating some
> common root name, I think that's a bit strange, misguided even.
>
> But when the kind of situation that ca
On Dec 22, 2009, at 1:01 PM, Matt Neuburg wrote:
> On Tue, 22 Dec 2009 12:51:35 -0500, "Eric E. Dolecki"
> said:
>> I have a view which controls it's UI when rotated. However, if there is a
>> subView in place, it rotates and I'd like to control it's UI too. In my
>> subView the willAnimateRotat
On Dec 22, 2009, at 11:19 AM, PCWiz wrote:
> Is there any easy way to execute a portion of code on the main thread without
> going through the mess of delegates and selectors?
Delegates have *nothing* to do with main thread execution. Selectors a bit
orthogonal, too.
If you want to execute
Well what I meant by delegates and selectors was like the secondary thread
calls a selector on the main thread (using performSelectorOnMainThread) but I
guess I got a little confused there :)
I would like to use blocks, however I'm using the 10.5 SDK so as far as I know
blocks cannot be used. I
PCWiz wrote:
I would like to use blocks, however I'm using the 10.5 SDK so as
far as I know blocks cannot be used. Is there a way to get
performSelectorOnMainThread to return a value? That would solve my
issue, because I could pass on the NSAttributedString to a method
on the main thread
So for example I could do performSelectorOnMainThread with an NSMutableArray,
for example, then have the method add the result object to the array and return
it?
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-22, at 1:29 PM, Greg Guerin wrote:
>>
>> I would lik
PCWiz wrote:
So for example I could do performSelectorOnMainThread with an
NSMutableArray, for example, then have the method add the result
object to the array and return it?
As long as no other threads were doing anything with that array, I
think that would work.
Or define a very simp
On Dec 22, 2009, at 11:01 AM, Matt Neuburg wrote:
> On Tue, 22 Dec 2009 12:51:35 -0500, "Eric E. Dolecki"
> said:
>> I have a view which controls it's UI when rotated. However, if there is a
>> subView in place, it rotates and I'd like to control it's UI too. In my
>> subView the willAnimateRota
Hi. I realize this is a basic Cocoa question, but now that I need to know, I
can't find the answer in the NSView or NSResponder docs.
Do NSViews have the notion of being "active" or "inactive?" My app architecture
requires that I be able to differentiate, at draw time, between a (custom) view
t
On 23/12/2009, at 6:20 AM, glenn andreas wrote:
>> But when the kind of situation that calls for it arises, it might seem very
>> natural and elegant. I'm just suggesting that we not condemn an architecture
>> out of hand merely because we've no experience of it. m.
>>
>
> And isn't even that u
On Dec 22, 2009, at 6:20 AM, Jerry Krinock wrote:
> The last few days, I've seen this message in the console when I launch an app
> I'm working on:
>
> __CFServiceControllerBeginPBSLoadForLocalizations timed out while talking to
> pbs
>
> The message also sometimes appears again a few minutes
On Dec 22, 2009, at 2:15 PM, Henry McGilton (Boulevardier) wrote:
This sounds like a good time for the view to post an
NSNotification. The
subview can then respond to it. m.
Sounds like overkill --- swatting mosquitoes with sledgehammers.
An NSNotification is not a sledgehammer. And letti
On Dec 22, 2009, at 10:57 AM, Houdah - ML Pierre Bernard wrote:
> When I hit the "+" button on a row in NSRuleEditor, a new row is created. How
> can I take influence on the criteria used for that row.
>
> It seems NSRuleEditor defaults to selecting the first criterion sequentially
> from the
On 2009 Dec 22, at 15:37, Peter Ammon wrote:
> Can you see if the "pbs" process is running? If so, what does sample show
> it's doing?
Yes it is, and, not doing too much. I took this sample while my app was
launching. It looked the same if sampled at another time, except 2765 samples
inste
On 23/12/2009, at 4:33 AM, Richard Somers wrote:
> How do you inspect or print the description of a Core Graphics object?
Core Graphics objects don't really have descriptions. You can do a 'po ' in gdb as usual, but you get just the class name and address, and no
more.
What do you need to kno
Thanks all for the insight so far. I'm calling methods into the view - but I
think I need to redo how it works. I am interested in NSNotification as I
haven't used that yet.
On Tue, Dec 22, 2009 at 6:37 PM, Matt Neuburg wrote:
>
> On Dec 22, 2009, at 2:15 PM, Henry McGilton (Boulevardier) wrote:
On Dec 22, 2009, at 3:37 pm, Matt Neuburg wrote:
>>> This sounds like a good time for the view to post an NSNotification. The
>>> subview can then respond to it. m.
>>
>> Sounds like overkill --- swatting mosquitoes with sledgehammers.
>
> An NSNotification is not a sledgehammer. And letting in
On Dec 22, 2009, at 3:52 PM, Jerry Krinock wrote:
>
> On 2009 Dec 22, at 15:37, Peter Ammon wrote:
>
>> Can you see if the "pbs" process is running? If so, what does sample show
>> it's doing?
>
> Yes it is, and, not doing too much. I took this sample while my app was
> launching. It look
I already stated (I believe) that I needed to redo the way this application
is being constructed. In this way I'll have more direct access to subviews.
I originally created another view controller with it's own nib and I was
indeed loading it and using it as a subview to my main view. No leaks sinc
On Dec 22, 2009, at 5:09 pm, Eric E. Dolecki wrote:
> I already stated (I believe) that I needed to redo the way this application
> is being constructed. In this way I'll have more direct access to subviews. I
> originally created another view controller with it's own nib and I was indeed
> lo
On 2009 Dec 22, at 17:07, Peter Ammon wrote:
> You should be able to get the annoying log messages to stop by just running
> pbs directly: /System/Library/CoreServices/pbs . It should exit within a
> second or so and the log messages should be gone.
Indeed, after doing this, I launched my app
I think I have actually found a one line solution for this problem.
The issue class in my case is NSLayoutManager. I dug through the docs for
NSLayoutManager and read the section on thread safety. There were 2 steps to
achieving thread safety with NSLayoutManager. First, if the NSLayoutManager
I noticed that NSPersistentDocument's docs for isDocumentEdited talks about
"editors registered with the managed object context."
Is there something that explains what a "registered editor" is?
TIA,
Rick
___
Cocoa-dev mailing list (Cocoa-dev@lists.ap
On Tue, Dec 22, 2009 at 9:33 PM, Rick Mann wrote:
> I noticed that NSPersistentDocument's docs for isDocumentEdited talks about
> "editors registered with
> the managed object context."
>
> Is there something that explains what a "registered editor" is?
See the docs about NSEditorRegistration pr
On Dec 22, 2009, at 19:13:50, Jim Correia wrote:
> On Tue, Dec 22, 2009 at 9:33 PM, Rick Mann wrote:
>> I noticed that NSPersistentDocument's docs for isDocumentEdited talks about
>> "editors registered with
>> the managed object context."
>>
>> Is there something that explains what a "registe
On Tue, Dec 22, 2009 at 5:22 PM, Graham Cox wrote:
> This is exactly the sort of code smell we were always on the look out for at
> code reviews, and it was always avoidable. In every case, the revised code
> was more elegant, maintainable and straightforward. I don't believe there is
> a genui
On Tue, Dec 22, 2009 at 9:28 PM, Kyle Sluder wrote:
> See -[NSControl tag] for an example of where it's done in Cocoa.
Didn't finish my sentence. Specifically it is done with the tag by
-[NSTextView performFindPanelAction:]. It's not quite using the
caller's selector, but it is funneling quite a
On Tue, Dec 22, 2009 at 4:16 PM, Rick Mann wrote:
> Do NSViews have the notion of being "active" or "inactive?" My app
> architecture requires that I be able to differentiate, at draw time, between
> a (custom) view that is in the frontmost window (and technically, has focus),
> and a similar c
On Dec 22, 2009, at 19:41:06, Kyle Sluder wrote:
> On Tue, Dec 22, 2009 at 4:16 PM, Rick Mann wrote:
>> Do NSViews have the notion of being "active" or "inactive?" My app
>> architecture requires that I be able to differentiate, at draw time, between
>> a (custom) view that is in the frontmost
On Dec 22, 2009, at 10:45 PM, Rick Mann wrote:
> I'm listening for that notification. Sure is a clunky way to do things. I've
> never used a view framework that didn't tell views when they became
> active/inactive.
AppKit views don’t have a native active/inactive status like carbon HIToolbox
c
On Tue, Dec 22, 2009 at 9:45 PM, Rick Mann wrote:
> I'm listening for that notification. Sure is a clunky way to do things. I've
> never used a view framework that didn't tell views when they became
> active/inactive.
Views don't become (in)active, windows do. Since there are plenty of
things t
On Dec 22, 2009, at 19:48:53, Jim Correia wrote:
> On Dec 22, 2009, at 10:45 PM, Rick Mann wrote:
>
>> I'm listening for that notification. Sure is a clunky way to do things. I've
>> never used a view framework that didn't tell views when they became
>> active/inactive.
>
> AppKit views don’t
On Dec 22, 2009, at 19:51:03, Kyle Sluder wrote:
> On Tue, Dec 22, 2009 at 9:45 PM, Rick Mann wrote:
>> I'm listening for that notification. Sure is a clunky way to do things. I've
>> never used a view framework that didn't tell views when they became
>> active/inactive.
>
> Views don't becom
On Tue, Dec 22, 2009 at 11:54 AM, Ricky Sharp wrote:
> (1) Have separate nibs for each language. I agree with those that say you
> cannot have a one-size-fits-all layout. Each nib will thus carry layout,
> font size, style, etc. that makes sense for a particular language.
Luckily this isn't a
Oh sorry, forgot to 'reply all'
my bad.
Thanks,
Chaitanya Pandit
Expersis Software Inc.
On Dec 22, 2009, at 7:12 PM, Jerry Krinock wrote:
>
> On 2009 Dec 21, at 23:16, Chaitanya Pandit wrote:
>
>> Hi jerry,
>> I think what i'll have to do is if the user closes the doc without saving,
>> just
On Dec 22, 2009, at 9:33 AM, Richard Somers wrote:
> How do you inspect or print the description of a Core Graphics object?
There's no analogue to the -description method of Objective-C frameworks.
Many of the specific Core Graphics types like CGColor and CGColorSpace and
CGImage and CGFont h
Hello,
is there a way to store regular ivars in docs of a core data doc-based
applictions?
Rainer
___
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
On 22 dec 2009, at 19.45, Rick Mann wrote:
>>> Do NSViews have the notion of being "active" or "inactive?" My app
>>> architecture requires that I be able to differentiate, at draw time,
>>> between a (custom) view that is in the frontmost window (and technically,
>>> has focus), and a similar
Hello, I'm new here.
I have a problem.
I have two window, main window, and another window call NSWindow
*cargaCaracteristicasHormigon;
when I would like to see them, press a bottom there, and it's no problem:
-(IBAction)showCaracteristicasHormigonSheet:(id)sender{
if (piezaSeleccionada
NSViewAnimationFadeInEffect doesn't seem to be working like it was in Leopard.
Here's an older project (not mine) to test:
http://www.noodlesoft.com/blog/2007/09/03/animation-in-the-time-of-tiger-part-2/
When fading from one view to another, the fade out works, but the fade in
doesn't. The view
Hi All,
Is there a way to get a virtual folder in mac? Something like the win 7
library folder? Basically I am trying to create a folder in which if a file
is copied or dragged, it creates a link to the original file into the
folder instead of copying the file. I saw that Burn folder is something
Hi folks,
I'm new to Cocoa but I think I have a passable understanding of Obj-C.
I'm learning Cocoa for a part of an undergraduate comp-sci independent
project.
I'm working through the Cocoa Application Tutorial, found here:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/
On Dec 22, 2009, at 3:21 PM, Joaquín Sánchez wrote:
> 2009-12-23 00:08:10.483 Secciones[1682:a0f] Modal session requires modal
> window
This happens when in IB you drop in an NSWindow instance, and then change the
class to NSPanel, versus creating an NSPanel instance in the first place. My
gu
On Dec 22, 2009, at 4:58 PM, Kevin Wojniak wrote:
> NSViewAnimationFadeInEffect doesn't seem to be working like it was in Leopard.
>
> Works fine in Leopard, but not in Snow Leopard.
I had this same problem recently but didn't go back to Leopard to verify it.
Fade out worked fine, but fade in w
I just tried doing that the other day, and it just appeared suddenly, so I
assumed I was doing something wrong. In the end I needed to program it
differently because I needed to reverse the showing/hiding animation part way
through the animation, so I never really looked into it in depth, but as
Hmmm - seems as if there really is a bug there. One thing that surprised me in
the documentation is that it explicitly says that the Hidden property is only
set to false at the end of the animation.
"If the effect is to fade in an initially hidden view and the end frame is
non-empty, the view
On Dec 22, 2009, at 9:40 PM, Michael Craig wrote:
>NSLog(@"Reference count: %lx", (unsigned long) [converter retainCount]);
>[converter release];
>NSLog(@"Reference count: %lx", (unsigned long) [converter retainCount]);
If the -release is going to deallocate converter, then the subse
On 23/12/2009 06:40, Michael Craig wrote:
> Everything else is the same as is given in the tutorial. The console shows
> that the reference count of converter is 1 both before and after the
> release. Why ?
>
You said that you're using garbage collection. When using GC retain and
release message
76 matches
Mail list logo