hi all,
i am converting from carbon to cocoa
with NSApplicationMain i need to know how to call some startup code before
receiving events and upon quit i need to call some shutdown code
are there some docs on this issue? examples? advice?
thanks,
bill appleton
hinay Kartik Reddyreddy <
karthikredd...@gmail.com> wrote:
> Try the NSApplicationDelegate .
>
>
> On Apr 21, 2010, at 6:50 PM, Bill Appleton wrote:
>
> > hi all,
> >
> > i am converting from carbon to cocoa
> >
> > with NSApplicationMain i need to k
vent loop...?? or
> soem specific events??
>
> you get key and mouse events inside NSView. If you are looking to capture
> events at NSWindow or NSApp level override sendevent method
>
> - (void) sendEvent:(NSEvent *)cocoaEvent
>
>
> On Apr 22, 2010, at 4:34
owRef with NSWindow and watch the carnage
ensue
thx,
bill
On Thu, Apr 22, 2010 at 3:18 PM, Shawn Erickson wrote:
> On Thu, Apr 22, 2010 at 1:34 PM, Bill Appleton
> wrote:
> > hi all,
> >
> > thanks for the feedback
> >
> > i wrote a subclass for NS
this interface which runs under WebKit /
Safari / Firefox.
so its a "real world" scenario instead off the best of all possible worlds
but its great to meet so many knowledgeable people, i'll have some more
tangible questions as this progresses
thanks,
bill appleton
On Thu, Apr
On Fri, Apr 23, 2010 at 9:00 AM, Jens Alfke wrote:
>
> On Apr 23, 2010, at 7:08 AM, Bill Appleton wrote:
>
> > so i have made a lot of efforts to learn cocoa, but our product is an
> NPAPI browser plugin
>
> Whoa, hold on, stop the music —
>
> That changes things.
hi all,
i wanted to do a reality check on some of my code & ask some specific
questions.
1) how do i get that nifty application/preferences/services menu? i create
my menus dynamically (not nibs)
2) i need to create a raw NSScroller and control it like a NSSlider (min,
max, value, proportion) i
common, i
need a scroll bar that behaves like a puppet & DOES nothing
thanks again,
bill appleton
On Sun, Apr 25, 2010 at 4:05 PM, Charles Srstka wrote:
> On Apr 25, 2010, at 6:00 PM, Klaus Backert wrote:
>
> > On 25 Apr 2010, at 22:28, Charles Srstka wrote:
> >
> &
it needs to look like a scroll bar... is that possible?
On Mon, Apr 26, 2010 at 6:54 AM, Jack Nutting wrote:
> On Mon, Apr 26, 2010 at 3:51 PM, Bill Appleton
> wrote:
> > did anyone have some more color on question (2) the need to create a raw
> > NSScroller and control
hi all,
so in the NSScroler docs there is no way to set the min, max, and value --
that is the problem
there is a way to set the proportion of the page...
or am i missing something?
thx
On Mon, Apr 26, 2010 at 7:06 AM, Paul Sanders wrote:
> > did anyone have some more color on question (
, and
then setting the CG font and size, etc. like before
but it is as if I need to also set the NSFont or something like that
other graphics (lines, bitmaps, etc.) are drawing correctly
can someone shed some light on this and/or point me to some documentation?
thanks,
bill appleton
; How are you rendering the text ?
>
> We recommend sticking to Cocoa text rendering API in order to support
> proper Unicode rendering.
>
> Thanks,
>
> Aki
>
> On Apr 26, 2010, at 12:24 PM, Bill Appleton wrote:
>
> > hi all
> >
> > i converted a bu
are directly tied to
> the text position (CGContextSetTextPosition).
>
> You need to reset the text matrix before calling CGContextSetTextPosition,
> or you could just update the text position using CGContextSetTextMatrix.
>
> Aki
>
> On Apr 26, 2010, at 12:39 PM, Bill Appleton wrote:
>
> h
ok in the docs
for this one
i have properly subclassed the NSView and the drawRect message is working...
do i need to do something else when I first show a window?
thanks,
bill appleton
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please d
10, at 3:35 PM, Bill Appleton wrote:
>
> > when my windows are first shown there is no drawing inside, they are
> white
> >
> > but when i slowly move the mouse over to the close box and the close box
> > responds to the mouse hover suddenly they draw their content prope
too often hurts performance and, depending on exactly
> what is being drawn when, can cause 'screen flash'.
>
> Paul Sanders.
>
> - Original Message -
> From: "Bill Appleton"
> To: "cocoa-dev list"
> Sent: Monday, April 26, 2010 10:35 PM
wrote:
>
> On 26 Apr 2010, at 20:24, Bill Appleton wrote:
>
> > hi all
> >
> > i converted a bunch of quickdraw code to core graphics successfully -- it
> > worked
> >
> > now i am converting a bunch of carbon UI code to cocoa
> >
> > but wh
are you saying there is a way to set the min, max and value on an
nsscroller? sorry, not clear on that
thx
bill
On Mon, Apr 26, 2010 at 6:46 PM, Charles Srstka wrote:
> On Apr 26, 2010, at 9:32 AM, Paul Sanders wrote:
>
> If you want to support Tiger, you will have to use the deprecated met
you are right, that will work, thanks!
On Tue, Apr 27, 2010 at 2:57 AM, Paul Sanders wrote:
> > are you saying there is a way to set the min, max and value on
> > an
> > nsscroller? sorry, not clear on that
>
> Why do you need min and max anyway? The current position is set
> as / returned a
doing something wrong?
thanks
bill appleton
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscr
ug faulty memory management
> is the path to madness.
>
>
> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html
>
> --Graham
>
>
>
>
> On 27/04/2010, at 11:46 PM, Bill Appleton wrote:
>
> > hi all,
> >
> > i
p working altogether --
can't resize it, etc.
thanks,
bill
On Tue, Apr 27, 2010 at 10:31 AM, vincent habchi wrote:
> Le 26 avr. 2010 à 23:35, Bill Appleton a écrit :
>
> > hi all,
> >
> > when my windows are first shown there is no drawing inside, they are
>
no threads
i have been disabling things to the point that it is mainly just the windows
i noticed that if i show/hide a window it will stop working altogether --
can't resize it, etc.
thanks,
bill
On Tue, Apr 27, 2010 at 1:34 PM, Uli Kusterer
wrote:
> On 27.04.2010, at 00:
>> Over the years, I think that looking at the retain count is the #1 cause
of hairpulling on this list.
it's too bad this is unreliable
an object should be able to return this info
and it isn't simple, it gets convoluted in process
if i add a submenu to an item then it is retained by the menu
but for some reason i am using core
graphics wrong or didn't set it up right to be used
does this make sense to anybody?
thanks,
bill
On Tue, Apr 27, 2010 at 1:41 PM, Uli Kusterer
wrote:
> On 27.04.2010, at 00:10, Bill Appleton wrote:
> > i added flush window to the d
the frame of a
> window).
>
> You can see if the window server times out by looking at the window server
> log in the console.
>
> Jesper
>
>
>
>
> On Apr 27, 2010, at 4:01 PM, Bill Appleton wrote:
>
> i have tried that way
>
> *CGContextRe
hi all,
i have been working on this a lot & have some new information
previously i was using carbon and core graphics
when i draw to the screen, sometimes it is in the update event but sometimes
it was in response to a mouse click, or some other event
this always worked:
*
QDBeginCGContext(gra
non-drawRect graphics
so i think if i remember when this is called from the drawRect loop versus
other times and add this code it will (kinda) work.
is there somebody out there that knows what is really going on?
thx
bill
On Wed, Apr 28, 2010 at 11:29 AM, Bill Appleton <
billap
calcSize and sizeToFit?
thx
bill appleton
On Thu, Apr 29, 2010 at 4:59 AM, Jo Meder wrote:
> Hi,
>
> I'm using NSScrollers directly, e.g. not in an NSScrollView. Using 10.6.3
> (haven't checked anything else mind you) I'm seeing some strange behaviour
> when
yUp:
kEventRawKeyRepeat:
--> this let me get changes in modifier keys, and the key repeat message
i have been looking in NSResponder and see some of this, but how do i get
the higher level messages like the unicode string and key repeats ?
thanks,
bill ap
cocoa to determin raw key (physical key) input?
thanks,
bill appleton
On Thu, Apr 29, 2010 at 5:47 PM, Douglas Davidson wrote:
>
> On Apr 29, 2010, at 5:26 PM, Charles Srstka wrote:
>
> > On Apr 29, 2010, at 5:38 PM, Jens Alfke wrote:
> >
>
> >>
Fri, Apr 30, 2010 at 7:15 AM, Graham Cox wrote:
>
> On 01/05/2010, at 12:12 AM, Bill Appleton wrote:
>
> > what is the best way on cocoa to determin raw key (physical key) input?
> >
>
>
> I don't know, but I wonder if this is the right question. If you look at
> t
equivalent & now that is also getting typed
does anyone know how to filter between characters that should be typed &
other stuff?
thanks,
bill
On Fri, Apr 30, 2010 at 8:14 AM, Shawn Erickson wrote:
> On Fri, Apr 30, 2010 at 7:12 AM, Bill Appleton
> wrote:
> > hi all,
> &g
hi all,
don't i need to use interpretKeyEvents to gather the key events until
insertText is called?
wow there is very little information on that
thx
bill
On Fri, Apr 30, 2010 at 8:55 AM, Shawn Erickson wrote:
> On Fri, Apr 30, 2010 at 8:48 AM, Bill Appleton
> wrote:
array to
interpretkeyevents & forgetting it
thanks,
bill
On Fri, Apr 30, 2010 at 9:32 AM, Charles Srstka wrote:
> On Apr 30, 2010, at 11:08 AM, Bill Appleton wrote:
>
> > don't i need to use interpretKeyEvents to gather the key events until
> > insertText is called?
wow thanks everyone so much
this is working great!
On Fri, Apr 30, 2010 at 10:04 AM, Douglas Davidson wrote:
>
> On Apr 30, 2010, at 9:59 AM, Charles Srstka wrote:
>
> > On Apr 30, 2010, at 11:41 AM, Douglas Davidson wrote:
> >
> >> Here is the normal sequence when a text-handling view recei
mine too :)
On Fri, Apr 30, 2010 at 10:13 AM, Charles Srstka
wrote:
> On Apr 30, 2010, at 12:07 PM, Bill Appleton wrote:
>
> > wow thanks everyone so much
> >
> > this is working great!
>
> No problem. World Builder was one of my favorite things of m
f the vertical
slot, and a vertical bar stuck in the horizontal slot
the slots are correct in size, but the bar hasn't re-jiggered to fit the
slot
does anyone know what is going on?
thanks,
bill
On Thu, Apr 29, 2010 at 12:08 PM, Bill Appleton <
billapple...@dreamfactory.com> wrote
ck in a little piece of the vertical
slot, and a vertical bar stuck in the horizontal slot
the slots are correct in size, but maybe the bar hasn't re-jiggered to fit
the slot
does anyone know what is going on?
thanks,
bill appleton
___
Cocoa-dev mail
calling the
resize routine right after that.
that is why one of the bars was hidden -- it was a horizontal bar in a
vertical slot, or vice verse.
best,
bill appleton
On Fri, Apr 30, 2010 at 12:04 PM, Bill Appleton <
billapple...@dreamfactory.com> wrote:
> hi anyone out there,
>
&
arbon to cocoa (DITL, DLOG)
is there any automatic tool for converting a dialog to interface builder?
wow i can't find one...
thanks,
bill appleton
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
painful for a simple list. Is there a better way?
*6)** **I **can't get the height of some wrapped text*
I had to use the layout manager and some major rocket science to get this to
work right. I'm not saying Text Edit was great, but at least it knows
t is a rather nasty solution -- but basically anyone trying to port a
large code base with printing is going to run right into this issue
unless i'm missing something
best,
bill
On Fri, May 28, 2010 at 9:04 AM, Kevin Wojniak wrote:
>
> On May 27, 2010, at 12:43 PM, Bill A
olumn, etc. Man
> that was painful for a simple list. Is there a better way?
>
>
> *6)** **I **can't get the height of some wrapped text*
>
> I had to use the layout manager and some major rocket science to get this
> to
> work right. I
gt;
>
> On May 28, 2010, at 9:43 AM, Bill Appleton wrote:
>
> > Hi Chaitanya,
> >
> > that code always returns a size of 100, 100 for every movie I try.
> really.
> >
> > and then the poster or frame is really pixelated because it is coming
> from
>
the image size you want returned in the attributes
> dictionary (along with the image format).
>
>
>
> On May 28, 2010, at 2:55 PM, Bill Appleton wrote:
>
> > the remaining problem is that the movie posetr returns a size of 100 x
> 100
> >
> > so when i captur
Hi All,
In 64 bit Safari our NPAPI plugin needs to use a few system dialogs for
opening files, printing, etc.
These system dialogs call stopModalWithCode to deliver the result of the
dialog interaction back to the runModalForWindow function
But the stopModalWithCode function does not work on ano
write a method that can just intercept a
class message in general. Is that possible?
thanks in advance,
bill appleton
On Mon, Jun 21, 2010 at 7:56 PM, Charles Srstka wrote:
> On Jun 21, 2010, at 7:33 PM, Jens Alfke wrote:
>
> > In general, if you have some kind of background a
Hi Charles,
Under Safari 64 bit you HAVE to use Cocoa -- there ain't nuthin' else.
By the way i just found out that this problem is FIXED in the latest version
of Safari.
Thanks all,
bill
On Tue, Jun 22, 2010 at 1:10 PM, Charles Srstka wrote:
> On Jun 22, 2010, at 1:54 PM,
Hi All,
Not sure I understand all the issues but this should be good news for Cocoa
lovers:
1) When Safari runs as 64 bit it loads and runs a 32 bit or 64 bit Cocoa
NPAPI plugin just fine. The 32 bit version of Safari will only run 32 bit
NPAPI plugins.
2) The exact same 32 bit plugin for Safari
invoking an open file dialog from a plugin should be fine, its all a
separate window ,separate process etc.
this is much more solid than the carbon/quickdraw/x manager stuff we used to
use
thx
bill
On Tue, Jun 22, 2010 at 2:19 PM, Charles Srstka wrote:
> On Jun 22, 2010, at 4:14 PM, B
then what will you be able to do? nothing? compare what is possible on
windows and mac, they can't get too far out of line. this IS sandboxed ---
its in a separate process
On Tue, Jun 22, 2010 at 4:02 PM, Jens Alfke wrote:
>
> On Jun 22, 2010, at 2:40 PM, Charles Srstka wrote:
>
> You get a se
mb"
the users machine without notice. like the "dancing mortgage guy" on cnn.
did you want to see him?
best,
bill
On Tue, Jun 22, 2010 at 4:59 PM, Jens Alfke wrote:
>
> On Jun 22, 2010, at 4:47 PM, Bill Appleton wrote:
>
> > this IS sandboxed --- its in a separate
Alfke wrote:
>
> On Jun 22, 2010, at 5:28 PM, Bill Appleton wrote:
>
> > so different vendors whip out "security" for different reasons. on mac,
> it is to prevent browser crashes, thus the separate process. on windows, it
> is all about preventing system corruption,
the world that you don't even know. its all software.
On Wed, Jun 23, 2010 at 12:19 AM, Jens Alfke wrote:
>
> On Jun 22, 2010, at 7:49 PM, Bill Appleton wrote:
>
> > i am pointing out that there is a giant, giant, giant difference between
> plugins that impose themsel
i type lots of stuff all the way out
its easier to debug
and the compilers are very good at optimizing that sort of thing
there is a big balance between efficiency, size, speed, clarity, etc
its usually clarity that is in short supply
On Wed, Jun 23, 2010 at 7:42 PM, Scott Anguish wrote:
a sample. Check out
> file://localhost/Developer/Examples/AppKit/TextInputView/
>
> Aki
>
> On 2011/07/29, at 7:31, Bill Appleton wrote:
>
> > Hi all,
> >
> > I have seen this issue come up a lot, but there isn't much information on
> > how to recei
do you handle
performKeyEquivalent:
un your view?
thx
Bill
On Fri, Aug 5, 2011 at 1:43 AM, Uli Kusterer
wrote:
> On 05.08.2011, at 08:49, Jens Alfke wrote:
> > Photoshop has always used letter keys as commands to select tools, and
> most other image editors on Mac follow suit, like Pixelma
?
Unfortunately we cannot use all the core Text stuff because (as mentioned)
this is an NPAPI plugin and we don't even have access to the output view or
window.
Best,
Bill Appleton
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please d
Hi All,
For an NPAPI plugin we need to receive Unicode keyboard input. We are
calling interpretKeyEvents and receiving the insertText message, but if I
type option-e (for example) we are not getting the accented-e character.
Can anyone shed some light on the right way to get unicode characters?
U
Hi all,
Based on my app, the dialog boxes have to be created dynamically, so i can't
use Interface Builder, so they are assembled out of cocoa controls as
needed.
My dialogs beep when i control-x to cut some selected text
What is the simple way for my dialog window to pass these command keys
eve
ent the wheel for controls in a dialog.
Best
On Mon, Jul 25, 2011 at 9:47 PM, Kyle Sluder wrote:
> On Mon, Jul 25, 2011 at 1:43 PM, Bill Appleton
> wrote:
> > Hi all,
> >
> > Based on my app, the dialog boxes have to be created dynamically, so i
> can't
menu, but they DONT have any
command key bindings, maybe that is the problem? i didn't create this menu
in the first place
thx
On Tue, Jul 26, 2011 at 8:00 AM, Kyle Sluder wrote:
> On Jul 26, 2011, at 7:52 AM, Bill Appleton
> wrote:
>
>
> BUT my question is that it seems
The main edit menu items are disabled when the dialog(s) come up.
On Tue, Jul 26, 2011 at 8:23 AM, Kyle Sluder wrote:
> On Jul 26, 2011, at 8:09 AM, Bill Appleton
> wrote:
>
> And when i right-click in them i get a clever menu with search in google,
> convert to
that the main app menus need to
be enabled when the dialogs are up? the dialogs are not using the main app
menu system at that time...
thanks in advance
On Tue, Jul 26, 2011 at 8:56 AM, Joar Wingfors wrote:
>
> On 26 jul 2011, at 08:09, Bill Appleton wrote:
>
> > There ARE
al dialog up I
guess. On microsoft windows if you have a text field up on a dialog with
focus it just responds to control-x and cuts the text. It doesn't matter
what is happening in the application menus.
On Tue, Jul 26, 2011 at 9:17 AM, Joar Wingfors wrote:
>
> On 26 jul 2011,
ock dialog (cocoa
is running) also has this problem.
On Tue, Jul 26, 2011 at 9:29 AM, Andy Lee wrote:
> On Jul 26, 2011, at 12:03 PM, Bill Appleton wrote:
> > The items in the main menu DO have the standard key bindings, they are
> > disabled when the modal dialogs come up
>
> T
hi all,
>> Wait! Are you saying that you modified the default target/action setup of
the Cut menu in your main nib file? If so, that would explain everything.
>> try starting again with a standard NIB and inspect each item to see what
things you may be missing.
i think this is the right track, ou
hi all
i set the target and the action on my menu items -- this is so that i can
get my handler called when someone selects a menu item
i will re-read the event handler docs with regard to menu items (no keyboard
issues) and see if that helps
thx
bill
On Tue, Jul 26, 2011 at 10:02 AM, Joar W
is with all dialogs, even cocoa get file and
put file dialogs that are not dynamically built
On Tue, Jul 26, 2011 at 2:38 PM, Gregory Weston wrote:
> Bill Appleton wrote:
>
> > Based on my app, the dialog boxes have to be created dynamically, so i
> can't
> > use
plugins.
>
> Instead the NPAPI's Cocoa extension defines the composition handling logic
> by itself.
>
> Refer to the 'Text Input' section in this document <
> https://wiki.mozilla.org/NPAPI:CocoaEventModel>.
>
> Aki
>
> On 2011/07/23, at 8:59, Bil
On Tue, Jul 26, 2011 at 10:44 AM, Kyle Sluder wrote:
> On Tue, Jul 26, 2011 at 10:30 AM, Bill Appleton
> wrote:
> > hi all
> >
> > i set the target and the action on my menu items -- this is so that i can
> > get my handler called when someone selects a menu i
utHandler];
> }
>
> -raleigh
>
> On Jul 27, 2011, at 11:26 AM, Bill Appleton wrote:
>
> > hi all,
> >
> > oh man i hate to belabor this issue but i have studied every suggestion
> and
> > the docs and i cannot figure this out
> >
> > the prob
hi kyle i agree. we are in transition that direction, its great to see the
mac growing in popularity it provides justification for the effort.
best bill
On Wed, Jul 27, 2011 at 12:13 PM, Kyle Sluder wrote:
> On Wed, Jul 27, 2011 at 11:57 AM, Bill Appleton
> wrote:
> > our app i
You might try NPAPI, it is designed to let you draw on a surface and get
events
Your plugin runs in a separate process, and is scriptable by javascript
best
bill
On Wed, Jul 27, 2011 at 8:02 AM, Guido Sales Calvano wrote:
> Dear community,
>
> I'm building a project I've been thinking a
Hi all,
I have seen this issue come up a lot, but there isn't much information on
how to receive unicode input in a NSView.
(I know we are supposed to just type in a NSTextField but that is impossible
in our situation where the app must run stand-alone and as a browser
plugin).
we used to call i
>> Sadly, Cocoa and many of the frameworks on which it is based really do
depend on the main thread and its run loop. Events have to be received
there and its run loop has to be serviced (run) on a regular basis.
this situation is basically the same on other platforms. the events come in
on some
77 matches
Mail list logo