I was really excited when Apple released HICocoaView so in particular
I could use NSTextView in my Carbon apps. However, this thing has some
pretty serious performance issue when resizing and when adding/
removing lines (return or deleting while type). Resizing is painfully
slow and choppy b
Hi there,
I used the code below to navigate between UITableViewController.
SearchAthleteNameViewController *searchAthletesVC =
[[[SearchAthleteNameViewController alloc] initWithNibName:storyLink
bundle:nil] autorelease];
[self.navigationController pushViewController:searchAthletesVC
anim
I don't have a solution just a couple of suggestions.
As GC is enabled you can try temporarily disabling the collector.
Bracket the crashing code segment with:
[[NSGarbageCollector defaultCollector] disable];
// crashing code
[[NSGarbageCollector defaultCollector] enable];
Otherwise I can onl
Hi!
Is it possible to send a simulated mouse click to a specific window,
overlapped by others?
The application i want to automate as no AXActions other than AXRaise
for the main window.
I already tried to focus the window and then click (via
CGPostMouseEvent), but this interferes with use
Is it possible to send a simulated mouse click to a specific window,
overlapped by others?
Benjamin - Have you tried creating your custom NSEvent objects and
passing
them to NSApplication's -sendEvent:?
Thanks for your quick answer. Maybe I was not specific enough:
I want to control window
Am 09.04.2009 um 10:54 schrieb developers mac:
Now, I have to navigate to NSObject from an UItableViewController. I
tried
using the same, i cannot find the method, initwithNibName to make it
navigate. And also it shows an warning in the next line & a cfrunloop
prevails.
can some one suggest/
> I quickly tested CGEventPostToPSN() and was able to click Safari's
> menu bar from my test app, but was not able to click inside Safari's.
Sorry, that was meant to say:
...but was not able to click inside Safari's windows.
___
Cocoa-dev mailing list
Try setSubviews:
Just get the subviews, sort then and setSubviews:
Documentation:
„And any views that are in both subviews and newSubviews are moved in
the subviews array as needed, without being removed and re-added.“
atze
Am 08.04.2009 um 23:26 schrieb Joshua Strickon:
I have a p
On Thu, Apr 9, 2009 at 6:50 AM, Benjamin Mollenhauer
wrote:
> Thanks for your quick answer. Maybe I was not specific enough:
> I want to control windows from foreign applications.
> Hence i tired it with the Accessibility API.
You can only do this with the accessibility API. By default this is
t
> Is it possible to send a simulated mouse click to a specific window,
> overlapped by others?
CGEventPostToPSN() is what you want - but unfortunately it looks like
a little hackery will be involved to get it working. NSEvent has a
'windowNumber' property associated with it, but it doesn't look li
I have a project in which I am adding nsbox controls as a subviews to
the main nsview. As a test, I do this on a rightmousedown. I then use
the leftmousedown to select and move the boxes around. This all works
fine. The problem I am having is that I would like the selected
object to be d
2009/4/9 Benjamin Mollenhauer
> Hi!
>
> Is it possible to send a simulated mouse click to a specific window,
> overlapped by others?
Benjamin - Have you tried creating your custom NSEvent objects and passing
them to NSApplication's -sendEvent:?
NSEvent class reference
<
http://developer.apple
Ah, for some reason I interpreted your message as wanting to send
arbitrary messages to objects in another process. My mistake.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comment
Hello,
I have a old project with a big nib file and it seems that somewhere
is a key equivalent defined for "ctrl+left cursor key". If I press
"ctrl+left cursor key" nothing happend (option+left and everything
else works fine).
I even tried subclassing NSApplication to track the event han
I want to programmatically enumerate files within a folder with
restricted access (such as home folder of another user), similar to
using sudo command in Terminal.
I have read the "Performing Privileged Operations With Authorization
Services" guide and I have written the code that creates the
auth
Summarizing the behaviour I see here
If I add an object (which is the principal class of a bundle) to an
NSMutableArray, later in the program I get the exception that the
NSFileManager default manager object does not respond to a known
message selector.
I further narrowed it down to a frea
I think I'm missing something obvious here. I have a HUD window that
I need buttons in. The button style that looks closest to what I want
is recessed, but that's not exactly what I'd like. See, that way,
there's no border, and the text is black unless the button is
selected. What I'd l
Check out the BWToolkit.
http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolkit/
On 9 Apr 2009, at 15:08, Walker Argendeli wrote:
I think I'm missing something obvious here. I have a HUD window
that I need buttons in. The button style that looks closest to what
I want is recess
On Thu, 9 Apr 2009 15:24:29 +0100, "jonat...@mugginsoft.com"
wrote:
> Check out the BWToolkit.
> http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolkit/
>
Naive beginner question : why aren't these UI elements/styles available in
IB by default ? Apple decision ?
--
Guillaume
http://
Sorry I did not follow this thread as I thought it was a clear malloc/
free error.
size_t fread(void * restrict ptr, size_t size, size_t nmemb,
FILE * restrict stream);
Where is your ptr coming from?
If you comment out fread but rthe just crash somewhere else I’d bet
your ptr or strea
On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote:
On Apr 9, 2009, at 1:06 , Ryan Joseph wrote:
I was really excited when Apple released HICocoaView so in
particular I could use NSTextView in my Carbon apps. However, this
thing has some pretty serious performance issue when resizing and
w
On Thu, Apr 9, 2009 at 10:39 AM, Guillaume Laurent
wrote:
> Naive beginner question : why aren't these UI elements/styles available in
> IB by default ? Apple decision ?
Who knows? Ran out of time, maybe.
If you want official Apple HUD-style controls (I think we all do -- of
course, no offense
I also found this one:
http://code.google.com/p/bghudappkit/
Doe anyone have experience with either one or have a preference?
- Walker Argendeli
On Apr 9, 2009, at 10:23 AM, jonat...@mugginsoft.com wrote:
Checkout the BWToolkit
http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolki
On Thu, Apr 9, 2009 at 9:54 AM, Oleg Krupnov wrote:
> Now I am puzzled what do I do next? How do I use this authorization
> reference, how do I pass it to the file manipulation functions?
You spawn a setuid root process to do the work. See the
BetterAuthorizationSample for more:
http://developer
On Apr 9, 2009, at 8:57 AM, Walker Argendeli wrote:
I also found this one:
http://code.google.com/p/bghudappkit/
Doe anyone have experience with either one or have a preference?
I've used BGHUDAppKit; I'm really satisfied with it, with the
exception that it does not understand that scrollba
On Apr 8, 2009, at 12:36 PM, Ashley Clark wrote:
Thread 0 Crashed:
0 GLEngine0x1e4daf17
glDeleteTextures_Exec + 23
1 libGL.dylib 0x941cc476 glDeleteTextures
+ 38
2 com.apple.imageKit 0x93aa4684
_deleteTextureForIKGLI
On Apr 9, 2009, at 10:22 PM, Marcel Weiher wrote:
On Apr 9, 2009, at 7:51 , Ryan Joseph wrote:
On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote:
On Apr 9, 2009, at 1:06 , Ryan Joseph wrote:
[NSTextView in HICocoaView performance problems]
[requests for more information]
I have used NSTe
On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" :
> On 08 Apr 09, at 08:03, Matt Neuburg wrote:
>> On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli
>> said:
>>> I am making a simple application that consists of a small HUD window
>>> that needs to float above another application. How
On Thu, Apr 9, 2009 at 12:11 AM, Adam R. Maxwell wrote:
> I recently noticed that you can use F_GETPATH with fcntl(2), but I've no
> idea what caveats are associated with it. It might be easier than messing
> with inodes directly, anyway?
Good call. I had actually seen this before, but forgot wh
On Thu, Apr 9, 2009 at 12:55 AM, Erg Consultant
wrote:
> Unfortunately I can't do that as my class are wrappers around the ANSI file
> I/O calls such as fopen, etc. - so I have to match their prototypes.
Can you explain this in more detail? fopen and friends do not deal
with NSFileHandle, so it
Thanks, Kyle. Isn't there really a way to do the work in the same
process? It seems quite tedious to transfer my existing
directory-scanning code into a separate process and set up the
communication between the processes...
On Thu, Apr 9, 2009 at 5:59 PM, Kyle Sluder wrote:
> On Thu, Apr 9, 2009
On Thu, Apr 9, 2009 at 11:57 AM, Oleg Krupnov wrote:
> Thanks, Kyle. Isn't there really a way to do the work in the same
> process? It seems quite tedious to transfer my existing
> directory-scanning code into a separate process and set up the
> communication between the processes...
There really
On 9 Apr 2009, at 16:49:48, Matt Neuburg wrote:
On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" >:
On 08 Apr 09, at 08:03, Matt Neuburg wrote:
On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli
said:
I am making a simple application that consists of a small HUD
window
that needs
This might be more interesting... looks like the thing some crash down
in the bowels of LocaleGetValue?
As you probably gather, I have absolutely no idea what's going on in
there... i've changed the code that launches this into the asymmetric
request version for httpurlconnection (= threade
Dear All,
i m working on sqlite3 database, problem is this that, when i insert data in
database from xcode, n after this when i go to sqlite3 terminal. the data is
not available there.
more strange is that after inserting data from app, when i try to access the
records, i can access. But af
Dear All,
i m working on UIWebView, i want that if any page displayed in UIWebView. it
should store in cache, but with that page all its embeded images, css files,
javascript files should be stored in cache.
When i called the page from cache, all the images,css files ,javascript files
shou
On Apr 9, 2009, at 1:06 , Ryan Joseph wrote:
I was really excited when Apple released HICocoaView so in
particular I could use NSTextView in my Carbon apps. However, this
thing has some pretty serious performance issue when resizing and
when adding/removing lines (return or deleting while
On Apr 9, 2009, at 7:51 , Ryan Joseph wrote:
On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote:
On Apr 9, 2009, at 1:06 , Ryan Joseph wrote:
[NSTextView in HICocoaView performance problems]
[requests for more information]
I have used NSTextView in Cocoa windows without the HICocoaView and
According to fawad shafi:
> i m working on sqlite3 database, problem is this that, when i
> insert data in database from xcode, n after this when i go to
> sqlite3 terminal. the data is not available there.
>
> more strange is that after inserting data from app, when i try
> to access the records
On Thu, Apr 9, 2009 at 10:06 AM, fawad shafi wrote:
> somebody help me!
You're being obnoxious.
If anybody has an answer for you, they'll answer your thread, but
re-posting and adding the demand 'somebody help me!' just adds
noise to the list, which only manages to annoy people enoug
On Apr 9, 2009, at 05:49, Georg Seifert wrote:
I have a old project with a big nib file and it seems that somewhere
is a key equivalent defined for "ctrl+left cursor key". If I press
"ctrl+left cursor key" nothing happend (option+left and everything
else works fine).
I even tried subclass
> Neither of these two sentences makes any sense for me.
"Carbon" originally meant "the Classic Mac OS Toolbox APIs, as adapted to
work on OS X". But Apple has been evolving the meaning, by rebranding those
parts of the APIs that will live on in 64-bit and beyond to be "Core" APIs,
while "Carbon"
I use BWToolkit in practically every desktop app I work on, and it's
fantastic. I can't recommend it enough.
On Apr 9, 2009, at 10:57 AM, Walker Argendeli wrote:
I also found this one:
http://code.google.com/p/bghudappkit/
Doe anyone have experience with either one or have a preference?
M
On Thu, Apr 9, 2009 at 1:50 PM, Mike Glass wrote:
> I use BWToolkit in practically every desktop app I work on, and it's
> fantastic. I can't recommend it enough.
I can vouch for BWToolkit as well. Though I haven't updated it in
awhile, the last version I played with did still have a few odd
be
In Calculator.app, hitting the resize button lets you switch between
three types of calculators. What technique could I use to implement
something like this in my app? Note that I don't want the user to be
able to resize the window by dragging the bottom-right corner. I know
I need to us
david paeme wrote:
This might be more interesting... looks like the thing some crash
down in the bowels of LocaleGetValue?
Locale information is often taken from environment variables. Print
the environment, compare it to when it doesn't crash, and check any
differences.
Next, try runni
On Thu, 9 Apr 2009 17:31:52 +0100, Benjamin Dobson
said:
>
>On 9 Apr 2009, at 16:49:48, Matt Neuburg wrote:
>
>> On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" > >:
>>
>>> On 08 Apr 09, at 08:03, Matt Neuburg wrote:
On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli
said:
Greetings LA CocoaHeads.
Tonight Ken Bowlus will be demoing his iPhone app and discussing
how to set up an iPhone project, a high-level view of the iPhone API,
and a walk through of the source code for his app.
We meet at the offices of E! Entertainment at 7:30pm.
Our meeting location is
5750
Hi everyone!
BYU CocoaHeads will be having their monthly meeting tonight at 7pm in
room 184 of the Tanner Building on BYU campus in Provo, UT. All are
invited to attend. Cory Kilger will be presenting on Localization,
and Mark Suman will be demoing an iTunes-integrated app he's developed
Hi everyone,
I am writing an app that requires to know if and where iMovie 09 is
installed, since it needs to read a file located in its application
bundle. I know I could ask the user to locate the app, but I would
like to avoid it if possible, or use this strategy as a last resort.
Any
On Apr 9, 2009, at 2:22 PM, Huibert Aalbers wrote:
I am writing an app that requires to know if and where iMovie 09 is
installed, since it needs to read a file located in its application
bundle. I know I could ask the user to locate the app, but I would
like to avoid it if possible, or use
Hello all,
I was wondering if anyone is aware of any work related to reversing
the OS X menu bar and menus for true right-to-left language
applications?
By true RTL I mean coupling language localization with actually
flipping the entire menu bar so that the Apple Menu and menu items
app
On 9 Apr 2009, at 20:02:34, Matt Neuburg wrote:
Oh, I thought "floats above another application" meant "floats above
another
*particular* application". After all, if that isn't what's meant,
then why
didn't he start by asking for a HUD window that just floats above all
applications always?
There are actually 2 NSEvent methods that aren't in my local docs here
at work, but are in the headers and on developer.apple.com:
+ (NSEvent *)eventWithCGEvent:(CGEventRef)cgEvent;
- (CGEventRef)CGEvent;
10.5-only, though.
On Apr 9, 2009, at 6:24 AM, Dave Keck wrote:
Is it possible to send
I guess I solved the problem:
I started thinking about why a locale would ever be needed - and all i
could think of were strings and formatting. So I started fooling
around with those... and the problem went away by using the
userDefault differently: using a number (and %d) instead of a str
> How do I enable the resize button without enabling drag-resize?
> - Do I use windowWillResize:toSize: to be notified? How am I notified of
> the user clicking clicking the button?
To satisfy both these requirements, I would first disable window
resizing for your window in IB. Then, somewhere in
> There are actually 2 NSEvent methods that aren't in my local docs here at
> work, but are in the headers and on developer.apple.com:
>
> + (NSEvent *)eventWithCGEvent:(CGEventRef)cgEvent;
> - (CGEventRef)CGEvent;
Woops :) That could be why I wasn't able to send click events to other
apps' window
I have the same issue. I'm binding my NSTextField value to my model
and using key-value validation to ensure the value is the right
length. If the user enters a value that it too short, the coerced
value will make it into my model, but the NSTextField keeps the pre-
validate value.
Anyone
On 4/9/09 2:25 PM, Nick Zitzmann said:
>> I am writing an app that requires to know if and where iMovie 09 is
>> installed, since it needs to read a file located in its application
>> bundle. I know I could ask the user to locate the app, but I would
>> like to avoid it if possible, or use this st
I have created a static method creating and returning an animation that I
use in various places in my application. I think this may be causing a leak.
If I autorelease theAnimation in the return statement I get a crash because
I the animation must be being release before it's complete.
Is this inde
I finally got clicks forwarding to another process. I made an example
project, available here: http://www.docdave.com/clicktest.zip
NOTE: You have to setup the project first - in the Globals.h file,
define 'PID' to the process that you want clicks to be forwarded to,
and 'WID' to the window ID of
On Apr 9, 2009, at 6:00 PM, Miles wrote:
I have created a static method creating and returning an animation
that I
use in various places in my application. I think this may be causing
a leak.
If I autorelease theAnimation in the return statement I get a crash
because
I the animation must b
david paeme wrote:
instead of a string (%@) the
%@ is the code for the -description of an object. Strictly speaking,
that isn't merely a string, but the result of sending a message.
UInt lastupdate = [userDefaults integerForKey:@"lastDBUpdate"];
NSString *urlString = [NSString stringWi
On Apr 8, 2009, at 8:24 AM, fawad shafi wrote:
i m working on sqlite3 database, problem is this that, when i insert
data in database from simulator, n after this when i go to sqlite3
terminal. the data is not available there.
more strange is that after inserting data from simulator, when i
On Thu, Apr 9, 2009 at 9:45 PM, Jeffrey Oleander wrote:
>
> There's a programming idiom to avoid using complex if statements and
> switch/case statements, and instead to just send a message to a different
> class of object.
>
> I'm doing some parsing of an old text data format which
> has a hiera
There's a programming idiom to avoid using complex if statements and
switch/case statements, and instead to just send a message to a different class
of object.
I'm doing some parsing of an old text data format which
has a hierarchy with a record and then sub-records and
sub-sub records, 1 per "
Thank you very much to both of you. Works like a charm.
Regards,
Huibert
On 09/04/2009, at 06:16 p.m., Sean McBride wrote:
On 4/9/09 2:25 PM, Nick Zitzmann said:
I am writing an app that requires to know if and where iMovie 09 is
installed, since it needs to read a file located in its appl
On Thu, Apr 9, 2009 at 6:52 PM, Dave Keck wrote:
> To satisfy both these requirements, I would first disable window
> resizing for your window in IB. Then, somewhere in your app's
> initialization code, do a little something like this:
Calculator.app apparently does the opposite, from looking at
On Thu, Apr 9, 2009 at 11:20 PM, Sherm Pendley wrote:
> On Thu, Apr 9, 2009 at 9:45 PM, Jeffrey Oleander wrote:
>
>>
>> There's a programming idiom to avoid using complex if statements and
>> switch/case statements, and instead to just send a message to a different
>> class of object.
>>
>> I'm d
On Thu, Apr 9, 2009 at 7:02 PM, Preston Jackson
wrote:
> Anyone have any ideas on this?
First, you typically don't bind views directly to the model. You
instead bind them through a controller.
I did a quick test, however, in which I did bind an NSTextField
straight to my model. I created a sim
LSItemInfoFlags, returned by LSCopyItemInfoForRef() when the queried
item is an application, contains several undocumented flags (i.e.
flags which are NOT documented in LSInfo.h nor in the Launch Services
Reference).
E.g. iTunes.app has (among well documented flags) also: 0x6804000.
Wher
Jeffrey Oleander wrote:
Advice on what's least messy overall or pointers
to sources of info would be appreciated.
http://en.wikipedia.org/wiki/Finite_state_machine
http://en.wikipedia.org/wiki/Reflection_(computer_science)
"Convert a string matching the symbolic name of a class or function
72 matches
Mail list logo