Hi,
I dunno if this is the right way to do it, but what if you Override
mouseMoved: for the main view that contains all the subviews, and use
a hitTest: to find the view over which the cursor is hovering and
simply use
[[NSCursor whateverCursor] set]; to change the cursor depending on the
On Sat, Nov 29, 2008 at 5:54 PM, Joe Turner <[EMAIL PROTECTED]> wrote:
> So, I'm creating a copy/erase tool for an app, and I need to be able to
> authorize the user so I can copy and delete files that need Admin
> permissions. I have looked thoroughly through the Security.framework, but
> could no
On Sat, Nov 29, 2008 at 11:55 PM, BirdSong <[EMAIL PROTECTED]> wrote:
> Could anyone tell me what's it or where can I find it?
It's just a standard toolbar. The buttons are selection buttons,
though, which means that you have to notify the toolbar that they are
selectable using the -toolbarSelect
Check out Brandon's fantastic BWToolkit:
http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolkit/
HTH,
Dave
On 29 Nov, 2008, at 9:55 PM, BirdSong wrote:
Hi all,
I am writting the mac component of a mac-iphone application. I saw
most of the applications(Finder, MSN, iChat...) on
Hi all,
I am writting the mac component of a mac-iphone application. I saw most of the
applications(Finder, MSN, iChat...) on Mac are all using the same style
preferences toolbar. However, I didn't find it in IB's Libirary.
Could anyone tell me what's it or where can I find it?
Thanks.
___
Namaste!
After having done many hours of investigating, head-scratching, trial/
error, and more searching, I've gotten stuck.
I created a simple scenario to work out how to accomplish a many-to-
many situation. I created two entities: Person and Hat. They are
defined thus:
Person:
personN
On Sat, Nov 29, 2008 at 5:30 AM, Arnold Nefkens <[EMAIL PROTECTED]> wrote:
> Hello List,
>
>
> I'm pretty new to Cocoa and just started with "Cocoa Programming for Mac OS
> X (3rd ed)" of Aaron Hillegass.
>
> I've got an idea for a app that uses a lot of shell commands to get certain
> information.
On Nov 29, 2008, at 2:58 PM, Glenn Bloom wrote:
// Implement loadView if you want to create a view hierarchy
programmatically
- (void)loadView {
/* snip */
NSMutableString * stringCompleteMutable = [NSMutableString
stringWithString:string00Local]; // local variable set with a
construct
Hi
I know I can put an image into a layer by doing theLayer.contents =
cgTheGreatImage.
But that will just put a single image on the layer. My question is, how can I
use that image to have a repeating pattern on that layer of that single image?
Can you give me short example code snippet?
Sorry, the last email got posted as rich text and became garbled. Allow me to
try again.
Thanks for your reply
My plan is to have a one big view covering the whole window, and then put a one
big layer covering all that view. That way the rest of the user interface could
just be many sublaye
Thanks for your replyMy plan is to have a one big view covering the whole
window, and then put a one big layer covering all that view. That way the rest
of the user interface could just be many sublayers within the big layers.The
rounded rectangle I mentioned would be one of those sublayers. Ho
Fantastic! I've gotten it to work, and it works beautifully! Thank
you, James (and everyone else) for helping me with this.
For archival purposes, here's my code:
CGEventSourceRef eventSource =
CGEventSourceCreate(kCGEventSourceStateHIDSystemState);
CGEventRef keyEventDown = CGEventCreat
> I haven't looked extensively into the latest Apple documentation on this
> subject and wouldn't be surprised if it has been "rolled in" recently, but
> David Gelphman's Programming with Quartz does go into this in some detail.
>
> Chapter 14, Creating and Examining PDF Documents, contains a lis
On Nov 28, 2008, at 9:53 PM, Pierce Freeman wrote:
for (int arraySort = 0; arraySort < [arrayInfo count]; arraySort++)
{
for (int arrayNewSort = 0; arrayNewSort < [arrayNewInfo
count]; arrayNewSort++)
{
if ([ arrayInfo objectAtIndex:arr
I've included Klaus' response for the benefit of anyone who may be
interested:
On 29.11.2008, at 08:38, Michael A. Crawford wrote:
When implementing the MVC pattern, is it inappropriate or bad-form
for views and layers to have direct read-only access to the model?
The Cocoa Fundamentals Gu
Hi Torsten,
I haven't looked extensively into the latest Apple documentation on this
subject and wouldn't be surprised if it has been "rolled in" recently, but
David Gelphman's Programming with Quartz does go into this in some detail.
Chapter 14, Creating and Examining PDF Documents, contains
> At my day job, we use pdfbox (see www.pdfbox.org) in automated tests. It
> basically grabs raw textual data and spits out two-dimensional arrays of
> strings.
>
> While it's java based, it may shed a light on how text extraction can be
> done. I do not, however, know if their licensing model wi
So, I'm creating a copy/erase tool for an app, and I need to be able
to authorize the user so I can copy and delete files that need Admin
permissions. I have looked thoroughly through the Security.framework,
but could not find anything. I do not want to do a shell script, so I
would rather
I found out what's wrong: Core Image isn't available for the iPhone OS.
dkj
___
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
On Sat, Nov 29, 2008 at 5:12 PM, Adil Saleem <[EMAIL PROTECTED]> wrote:
> My scenario is a little different than what you have described. I don't have
> images on buttons. I have my custom window (which is a black colored image)
> and on it are the static texts. These texts are displaying blurred
On Nov 29, 2008, at 5:39 AM, Mudi Dandan wrote:
Is it possible to to display a memory mapped file in an NSTextView
Of course.
and in such way that if the file grows the NSTextView updates.
Yes, though you'd have to update the text view manually. Keep in mind
that:
1. NSTextStorage w
Hi,
My scenario is a little different than what you have described. I don't have
images on buttons. I have my custom window (which is a black colored image) and
on it are the static texts. These texts are displaying blurred. Although i have
not been able to figure out why is this happening, but
On Nov 29, 2008, at 1:03 PM, Dave DeLong wrote:
More questions! (wh =) )
I've abandoned the NSEvent approach, although it would've been nice
if it had worked, and am now trying
CGEventKeyboardSetUnicodeString. Here's my code:
CGEventSourceRef eventSource =
CGEventSourceCreate(k
On Nov 29, 2008, at 3:16 PM, Torsten Curdt wrote:
I just assume that the actual content is hidden inside the page's
content stream(s).
Raw content, mostly, sometimes. But the draw commands are what put
it all
together.
For instance, you might have a paragraph of text where there is one
>> I just assume that the actual content is hidden inside the page's
>> content stream(s).
>
> Raw content, mostly, sometimes. But the draw commands are what put it all
> together.
>
> For instance, you might have a paragraph of text where there is one draw
> command per line, or you might have a p
More questions! (wh =) )
I've abandoned the NSEvent approach, although it would've been nice if
it had worked, and am now trying CGEventKeyboardSetUnicodeString.
Here's my code:
CGEventSourceRef eventSource =
CGEventSourceCreate(kCGEventSourceStateHIDSystemState);
CGEventRef keyE
Hello, I know this was already asked, but I couldn't find any reply
which will help me in the list.
I have a Custom View, that view has a layer, and that layer has many
sub-layers which are squares, so at the end what I have is a grid of
10 x 10, the book Im reading (Hillegass) says that t
On Nov 29, 2008, at 10:48 AM, Dave DeLong wrote:
My goal now is to accept arbitrary strings and post the keyboard
events for them. For ASCII characters, I can easily dispatch a
CGEventRef. However, I want to be able to send non-ascii characters
as well. Basically, any character that's v
> I just assume that the actual content is hidden inside the page's
> content stream(s).
Raw content, mostly, sometimes. But the draw commands are what put it all
together.
For instance, you might have a paragraph of text where there is one draw
command per line, or you might have a paragraph of
On Nov 29, 2008, at 1:00 PM, Pierce Freeman wrote:
The only problem with running that is that I get a error in the log
and it
doesn't seem to be working:
-[NSCFSet minusSet:]: mutating method sent to immutable object
My slightly modified code is below:
NSMutableSet *openApplicationsSet = [N
In response to an excellent first reply, below is a revision to my original
post that corrects various points, and that also incorporates some changes
to better focus my remaining questions - please disregard my original post
in favor of the following:
In the course of trying to understand UIViewC
Hello List,
I'm pretty new to Cocoa and just started with "Cocoa Programming for
Mac OS X (3rd ed)" of Aaron Hillegass.
I've got an idea for a app that uses a lot of shell commands to get
certain information. But I also want to use Interface builder to
provide the users the right interfa
On Nov 29, 2008, at 1:00 PM, Pierce Freeman wrote:
The only problem with running that is that I get a error in the log
and it
doesn't seem to be working:
-[NSCFSet minusSet:]: mutating method sent to immutable object
My slightly modified code is below:
NSMutableSet *openApplicationsSet = [N
Okay... That makes sense. :)
Thanks for your (and everyone else's) help.
Sincerely,
Pierce F
On 11/29/08 10:58 AM, "Ashley Clark" <[EMAIL PROTECTED]> wrote:
> On Nov 29, 2008, at 12:47 PM, Pierce Freeman wrote:
>
>> NSMutableSet *openApplicationsSet = [NSSet
>> setWithArray:openApplications
On Nov 29, 2008, at 12:47 PM, Pierce Freeman wrote:
NSMutableSet *openApplicationsSet = [NSSet
setWithArray:openApplications];
While openApplicationsSet is declared to be an NSMutableSet you are
not creating one. Your assignment should be [NSMutableSet
setWithArray:...]
NSSet *allowedA
Le 29 nov. 08 à 19:34, Bill Bumgarner a écrit :
On Nov 29, 2008, at 10:00 AM, Dave DeLong wrote:
Can this be used for posting events that would get picked up by
other applications?
Nope.
To be honest, I don't know how you post such events to another
application -- specifically targeted t
I may be totally wrong about this, but I think it said that it takes
something away from the Mutable Array, and that it doesn't necessarily
return anything... As I said, I may be totally wrong about this though. ;)
Sincerely,
Pierce F.
On 11/29/08 10:37 AM, "Charles Steinman" <[EMAIL PROTECTE
The client application is running on an iPhone/iPod touch and is
sending events to the server, which runs (as I mentioned) as an agent
application on the desktop. I'm writing both.
The purpose of the server application is to dispatch events to the
system. These can be many different kinds
NSMutableSet *openApplicationsSet = [NSSet setWithArray:openApplications];
NSSet *allowedApplicationsSet = [NSSet
setWithArray:applicationsAllowedMutableArray];
NSMutableSet *badApplicationsSet = [openApplicationsSet
minusSet:allowedApplicationsSet];
NSAlert * askToContinue = [NSAlert alertWithM
On Nov 29, 2008, at 9:45 AM, Glenn Bloom wrote:
Ashley,
Can't thank you enough. I just posted the following, hoping to pre-
empt other folks from wasting time correcting me on various points
you addressed - and I hope, refocusing things on my major
questions. I have of course been throug
Hey folks,
I am a little stuck here. I am trying to extract (and later modify)
text and images in a PDF. First I turned to PDFkit but that seems to
be way to high level for these things. Now I am trying with Quartz.
While I get to the CGPDFPageRef
int pages = CGPDFDocumentGetNumberOfPages(do
On 29.11.2008, at 19:30, Pierce Freeman wrote:
Klaus:
For whatever reason, Xcode is telling me that "error: void value not
ignored
as it ought to be" when I try to make badApplicationsSet a mutable
set.
Please. Show. Your. Code.
Klaus
___
C
--- On Sat, 11/29/08, Pierce Freeman <[EMAIL PROTECTED]> wrote:
> For whatever reason, Xcode is telling me that "error:
> void value not ignored
> as it ought to be" when I try to make
> badApplicationsSet a mutable set.
Take a look at the documentation for -[NSMutableSet minusSet:]. Specificall
Hi all,
I want some fonts in my views to be customizable. Notably, for a table
view. I added a font in the user defaults and this part works fine. I
did some test on a label and it doesn't work.
I want to change the label's font and display the font name. Here's
what I've done:
I place
On Nov 29, 2008, at 10:00 AM, Dave DeLong wrote:
Can this be used for posting events that would get picked up by
other applications?
Nope.
To be honest, I don't know how you post such events to another
application -- specifically targeted to another application. In
general, Mac OS X main
Klaus:
For whatever reason, Xcode is telling me that "error: void value not ignored
as it ought to be" when I try to make badApplicationsSet a mutable set.
Sincerely,
Pierce F.
On 11/29/08 10:22 AM, "Klaus Backert" <[EMAIL PROTECTED]> wrote:
>
> On 29.11.2008, at 19:00, Pierce Freeman wro
On 29.11.2008, at 19:00, Pierce Freeman wrote:
The only problem with running that is that I get a error in the log
and it
doesn't seem to be working:
-[NSCFSet minusSet:]: mutating method sent to immutable object
My slightly modified code is below:
NSMutableSet *openApplicationsSet = [NSSe
An off-list reply pointed this one out to me as well, and I've been
playing with it. But I have some more roadblocks:
My server app is an agent application (it only runs from the
menubar). My preliminary tests show that posting keyboard events this
way to another application only result i
The only problem with running that is that I get a error in the log and it
doesn't seem to be working:
-[NSCFSet minusSet:]: mutating method sent to immutable object
My slightly modified code is below:
NSMutableSet *openApplicationsSet = [NSSet setWithArray:openApplications];
NSSet *allowedAppl
On Nov 29, 2008, at 10:26 AM, Dave DeLong wrote:
I'm working on a client/server application. The client sends tiny
"Event" objects to the server that can contain an NSString of a
letter or short sequence of letters (up to about 4). What I'm
trying to do is figure out how the server can p
I've included QuartzCore.framework in my project frameworks. This is
my header file:
#import
#import
@interface MyImageView : UIImageView {}
@end
I have this in MyImageView.m:
CGContextRef cgref = UIGraphicsGetCurrentContext();
CIContext *c =
I have an NSTableView, filled by an NSArrayController.
A column has "Creates Sort Descriptor" selected in InterfaceBuilder.
And right: when I click on this column, an NSSortDescriptor gets
created with the selector "compare:".
Works fine; only "compare:" is quite unusable; the documentation q
On Nov 29, 2008, at 10:57 AM, Richard Somers wrote:
I just discovered part of my problem. The pdf image was being scaled
down slightly even though there was plenty of room for it inside the
NSButton. The default scaling is "Proportionally Down". Change this
to "None" and the image now is a
Wow, your email just made me realize that all I needed was this:
[myLayer addSublayer:[gameScreenView layer]];
I never thought it would be this easy! Thanks for the enlightenment. :)
I thought that this would only work to add CA content of a CA-backed
view, and not subviews, but it se
On Nov 29, 2008, at 8:26 AM, Dave DeLong wrote:
Hey everyone,
I'm working on a client/server application. The client sends tiny
"Event" objects to the server that can contain an NSString of a
letter or short sequence of letters (up to about 4). What I'm
trying to do is figure out how t
I just discovered part of my problem. The pdf image was being scaled
down slightly even though there was plenty of room for it inside the
NSButton. The default scaling is "Proportionally Down". Change this to
"None" and the image now is always sharp, at least for a User
Interface Resolution
Hey everyone,
I'm working on a client/server application. The client sends tiny
"Event" objects to the server that can contain an NSString of a letter
or short sequence of letters (up to about 4). What I'm trying to do
is figure out how the server can perform the keypress(es) to get that
The pdf canvas size is 25 points x 25 points and displayed full size
in the button. It contains only vector graphics.
I thought pdf would be the best thing for the simple graphics but it
is hard to get it pixel perfect. Many of the paths have pixel exact
boundaries within the graphics appli
Hi Guys,
I'm developing an application that generates logs (FTP transcript)
that could grow really big.
I want to display this log in simple textview so that the user can
examine it.
My question : Is it possible to to display a memory mapped file in an
NSTextView and in such way that if t
Make sure the PDF is not larger than the button and that it does not
contain bitmaps.
On 28 Nov 2008, at 23:44:41, Richard Somers wrote:
On Nov 28, 2008, at 3:06AM, Adil Saleem wrote:
But the static text is not readable when application is launched.
It is too blurred.
I have been using
No I know there's nothing like the code which will find things on an
image, but cocoa does have the primitive bits I think I need like
converting to a bitmap I can search. The best for me actually would
probably be converting to a bitmap with alpha channel only, then I can
search it byte by
61 matches
Mail list logo