On 21.07.2009, at 12:20, Graham Cox wrote:
Setting the name automatically when you set the class is a
convenience, but equally you can change the name to make it clear to
you what the object is. The name has no effect on anything.
I can agree, but the bug is, that I can't correctly change
Hi Sumanth,
On 20/7/09, Sumanth Peddamatham wrote:
I've spent a few days playing with NSArrayControllers, fiddling
with Content Array, Content Set, Content Object settings;
tried understanding @distinctUnionOfSets and
@distinctUnionOfArrays; but I've hit a wall.
I've never played with @
On 21/07/2009, at 5:07 PM, Alexander Bokovikov wrote:
I can agree, but the bug is, that I can't correctly change the class
name _after_ I've added some actions/outlets. I definitely would
like to have such ability. Adding a new object I could name its
class by mistake then add a couple of
On 21.07.2009, at 13:19, Graham Cox wrote:
I don't make up controllers as I go along in IB - they always pre-
exist in code and I just use IB to, er, build the interface.
I'm not against of the above. I can agree with your approach,
moreover, it's an approach, described in Cocoa classic boo
On Jul 21, 2009, at 00:07, Alexander Bokovikov wrote:
I can agree, but the bug is, that I can't correctly change the class
name _after_ I've added some actions/outlets. I definitely would
like to have such ability. Adding a new object I could name its
class by mistake then add a couple of t
On 21 Jul 2009, at 03:50, Courtney Arnold wrote:
Hello all,
I need to programmatically parse/read through the contents of an
NSImage. I am unable to find a tutorial or documentation that would
explain how to do so. I would like to get some input on where I may
be able to search for this
On Jul 20, 2009, at 10:00 PM, Michael A. Crawford wrote:
Looking for the meaning behind the value -43.
-Michael
Do a batch file search of header files in your SDK for -43, using
TextWrangler or BBEdit
(http://www.barebones.com)
--
What is a woman that you forsake her, and the hearth
I liked the macerror suggestion, never seen that command, so I tried
it out
$ macerror -43
Mac OS error -43 (fnfErr): File not found
On Jul 21, 2009, at 6:29 PM, Tommy Nordgren wrote:
On Jul 20, 2009, at 10:00 PM, Michael A. Crawford wrote:
Looking for the meanin
> From: Courtney Arnold
> Subject: Re: Cocoa Graphics Parsing
> To: cocoa-dev@lists.apple.com
> Date: Monday, 2009 July 20, 21:25
> I am expecting that I am going to
> have to drop down to lower levels. I want to be able to
> manually parse an image of a UPC barcode. I assume that the
> best way
On Jul 20, 2009, at 5:03 PM, David Duncan wrote:
On Jul 20, 2009, at 1:35 AM, WT wrote:
I'm trying to reuse (with some modifications)
UITableViewCellStyleSubtitle cells, which have two left-aligned
labels. I want to have both labels and add a right-aligned text
field. All three views must
Thanks for the hints Steve!
I think my message has been sitting in the Moderator queue, but I was
able to figure out @distinctUnionOfArrays a few days ago.
My solution was to create tiered NSArrayControllers. One
NSArrayController for the Sessions Entity, a proxy NSArrayController
called
On 21 Jul 2009, at 04:05, Graham Cox wrote:
Internally, you have -getPixel:atX:y: which would presumably be the
workhorse at the heart of your class.
-getPixel:atX:y: is fine for the odd what-colour-is-this test, but
it's the wrong thing to use for any kind of intensive pixel access.
For
I'm a real noob when it comes to the UIScrollView. What I would like to do:
I have a View that contains a UIScrollView. Instead of loading an image in
there, what I would like to do is load in another view (say an image that's
a lot wider than the portrait iPhone... which has button sprinkled
throu
Hello Cocoa-Dev,
Oh the joy of subclassing subclasses of NSControl and NSCell. I am
making a custom pop up menu object. I subclass NSPopUpButtonCell and
simply draw my custom menu button in the drawBezelWithFrame method.
The frame rect that this method passes in has been inset by some
a
On 22/07/2009, at 12:34 AM, Eric E. Dolecki wrote:
This works, but I can't make the view wider than the iPhone
portrait. How
should I handle this?
set the bounds rect of the infoView to what you want. If larger than
what will fit in the scroll view, it will be scrollable.
--Graham
__
Might it be okay to add buttons via code on top of a big image, and just
handle button events that way instead of using a sep view?
On Tue, Jul 21, 2009 at 10:41 AM, Graham Cox wrote:
>
> On 22/07/2009, at 12:34 AM, Eric E. Dolecki wrote:
>
> This works, but I can't make the view wider than the
Yeah I especially liked that one too. You know there are quite a few
handy (for development) command-line utilities laying on the disk. I
found out last week that there is a program for creating and
converting .CAF files. I had no idea. It would be nice if someone
put up a web page or d
On 22/07/2009, at 12:56 AM, Eric E. Dolecki wrote:
Might it be okay to add buttons via code on top of a big image, and
just handle button events that way instead of using a sep view?
No idea. But why do things in a weird way when a perfectly good
supported way already exists?
If you add
We have a winner! Yeah, both NSWindow outlets were not hooked up in
IB. Shouldn't I get some sort of warning. Oh well. Thanks for
pointing that out. The views don't look right but they show up. I
will sort it from here.
-Michael
On Jul 21, 2009, at 12:42 AM, Kyle Sluder wrote:
On Ju
On Jul 19, 2009, at 9:13 AM, Michael Hoy wrote:
NSString *m_scanString = @"This is a test.";
CFDictionaryRef emptyDic = (CFDictionaryRef)[NSDictionary dictionary];
CFAttributedStringRef attString =
CFAttributedStringCreate(kCFAllocatorDefault,
(CFStringRef)m_scanString, emptyDic);
CFMutableA
On Jul 21, 2009, at 7:34 AM, Eric E. Dolecki wrote:
I'm a real noob when it comes to the UIScrollView. What I would like
to do:
I have a View that contains a UIScrollView. Instead of loading an
image in
there, what I would like to do is load in another view (say an image
that's
a lot wider
I know it doesn't support NSAttributedString. However,
CFAttributedStringRef is supported. (That's why I'm using it.) The
documentation reads:
"iPhone OS Note: While Core Foundation on iPhone OS contains
CFAttributedString, there are no additions to the APIs in UIKit to add
specific attri
On Jul 21, 2009, at 8:13 AM, Michael A. Crawford wrote:
We have a winner! Yeah, both NSWindow outlets were not hooked up in
IB. Shouldn't I get some sort of warning. Oh well. Thanks for
pointing that out. The views don't look right but they show up. I
will sort it from here.
File a
I've recently started using the currency option for NSDateFormatter in IB. I
could have sworn it was using "$" as the currency symbol, but lately it's
started using "¤", which is a symbol I don't recognize. Anybody know what the
"¤" is, and how I can get "$" back as the default?
This *might*
On Jul 21, 2009, at 11:53 AM, Andy Lee wrote:
¤
…is the all-purpose "currency sign" in unicode. Its use is to denote
that the attached number is a currency value when the appropriate
symbol for the locale isn't available.
--
Phil Dokas -//- p...@jetless.org
_
On 21 Jul 2009, at 16:53, Andy Lee wrote:
> I've recently started using the currency option for NSDateFormatter
> in IB. I could have sworn it was using "$" as the currency symbol,
> but lately it's started using "¤", which is a symbol I don't
> recognize. Anybody know what the "¤" is, and how
On Jul 21, 2009, at 9:53 AM, Andy Lee wrote:
Another possibility is that the "¤" only shows up on one of the
machines I've been developing on -- I might be mistaken about the
behavior changing. Anyway, I'd still like to know what it means.
It's the international symbol for currency. Try s
I have a sub-classed TableView that is the document view of an
ScrollView. The rows of the TableView are composited by a custom
cell, and soI have overridden the -setFrameSize method of the
TableView in order to determine if any rows have changed height as a
consequence of the resize (if s
On Tue, Jul 21, 2009 at 8:53 AM, Andy Lee wrote:
> I've recently started using the currency option for NSDateFormatter in IB. I
> could have sworn it was using "$" as the currency symbol, but lately it's
> started using "¤", which is a symbol I don't recognize. Anybody know what
> the "¤" is,
Okay - how would I lay the buttons out in IB since IB doesn't allow one to
do that? I'd essentially need to place all my buttons with code anyway,
correct?
I want a really big image with hotspots on it I can click (I'll use with
UIButtons).
On Tue, Jul 21, 2009 at 11:03 AM, Graham Cox wrote:
>
>
On Tue, Jul 21, 2009 at 9:17 AM, Stuart Malin wrote:
> I have a sub-classed TableView that is the document view of an ScrollView.
For future reference: TableView and ScrollView are not names of
classes in Cocoa. NSTableView and NSScrollView are; UITableView and
UIScrollView exist in Cocoa Touch,
On Jul 21, 2009, at 9:17 AM, Stuart Malin wrote:
I now cache the last size given to the -setFrameSize method, and
don't perform my testing for row height changes if the width hasn't
changed, so I am no longer incurring that calculation cost.
Question 2 --> Is there a better way to configur
On Jul 21, 2009, at 9:27 AM, Kyle Sluder wrote:
On Tue, Jul 21, 2009 at 9:17 AM, Stuart Malin
wrote:
I have a sub-classed TableView that is the document view of an
ScrollView.
For future reference: TableView and ScrollView are not names of
classes in Cocoa. NSTableView and NSScrollView ar
On Jul 20, 2009, at 11:18 PM, Alexander Spohr wrote:
Am 21.07.2009 um 00:38 schrieb Tim Schmidt:
Is there any way to work around this
Yes: find your memory bug.
EXC_BAD_ACCESS almost always is a memory bug in your code.
atze
Obviously CG's bitblock transfers access unallocated
On Tue, Jul 21, 2009 at 9:32 AM, Tim Schmidt wrote:
> Obviously CG's bitblock transfers access unallocated memory in this case.
No, it probably doesn't.
Remember, 90% of the time, the bug is in your code. The other 10% of
the time, the bug is in your code.
> If
> I accidently free said memory i
On Jul 21, 2009, at 12:32 PM, Tim Schmidt wrote:
Obviously CG's bitblock transfers access unallocated memory in this
case. If I accidently free said memory it completely eludes me where
this might happen (I am pretty confident I don't release any of my
model/controller objects unintentional
On Tuesday, July 21, 2009, at 12:02PM, "Nick Zitzmann"
wrote:
>It's the international symbol for currency. Try selecting it, right-
>clicking, and choosing "look up in dictionary" for more details.
Cool. I tried to Google the symbol, but didn't think to try Dictionary. From
that I see I coul
On Jul 21, 2009, at 10:32 AM, Tim Schmidt wrote:
Obviously CG's bitblock transfers access unallocated memory in this
case. If I accidently free said memory it completely eludes me where
this might happen (I am pretty confident I don't release any of my
model/controller objects unintentiona
On Tuesday, July 21, 2009, Kyle Sluder wrote:
> Remember, 90% of the time, the bug is in your code. The other 10% of
> the time, the bug is in your code.
That's just not true. Plenty of bugs in the frameworks. I've
personally logged dozens. It's USUALLY your code but certainly not
always.
On Tue, Jul 21, 2009 at 9:56 AM, I. Savant wrote:
> That's just not true. Plenty of bugs in the frameworks. I've
> personally logged dozens. It's USUALLY your code but certainly not
> always.
It's not intended to be an accurate statement. The point is to avoid
jumping to conclusions. Framework
Hi all,
For a typical iPhone application, after the application is finished
launching, the app delegate would then
1) create an instance of UIViewController;
2) ask the view controller for its view which the controller creates on
demand;
3) add the view as a subview of the window.
I really like
It's not intended to be an accurate statement. The point is to avoid
jumping to conclusions. Framework code is far more exposed than your
own, and it is immensely more likely that you've screwed up than the
Quartz devs have.
I get that. I just don't think that's necessarily a good place to
On Tue, Jul 21, 2009 at 10:18 AM, Wilson Chen wrote:
> My question is: since an EAGLView is a subclass of UIView, is there a
> particular reason for the template to not follow the common pattern to
> adhere the beloved MVC?
Speed? If you're using OpenGL, you're probably developing a game, and
are
Michael Hoy wrote:
I know it doesn't support NSAttributedString. However,
CFAttributedStringRef is supported. (That's why I'm using it.) The
documentation reads:
"iPhone OS Note: While Core Foundation on iPhone OS contains
CFAttributedString, there are no additions to the APIs in UIKit to
Quincey and Graham have hit it exactly: as of IB 3, we encourage you
to manage all of your classes in Xcode. Interface Builder always stays
in sync with your Xcode project files. (however, we still support the
ability to do this in IB, so if you do find a bug with that workflow,
please file
My window has an NSImageView object within an NSScrollView. After
setting the image and the image frame, I want to detect and respond to
mouseDown on the image. The image appears in the view, but I found
nothing responding to the mouseDown.
I tried subclassing NSImageView and putting a -(vo
Hi All,
I've dug around through the archives, but couldn't turn anything up
that addresses this question, so I turn to the collective wisdom of
the list.
I'm trying to figure out how to create an NSScrollView subclass that
expands vertically rather than scrolling, up to a certain height.
On Jul 21, 2009, at 10:18 AM, Wilson Chen wrote:
My question is: since an EAGLView is a subclass of UIView, is there a
particular reason for the template to not follow the common pattern to
adhere the beloved MVC?
There is really no difference in if you want to have the view
controller or n
On Jul 21, 2009, at 11:55, Andrew Shamel wrote:
I'm trying to figure out how to create an NSScrollView subclass that
expands vertically rather than scrolling, up to a certain height.
Expands vertically when what? When the window is resized? Or is it
supposed to resize its window when it wan
Thanks for the quick response!
I'm looking for it to expand as its documentView expands.
The scrollviews are contained in a custom view called CardView, which
is itself inside a scrollview which I am happy to have act in the
usual fashion as the CardView gets taller and shorter as a result o
I started working on a new project, and started out using the 3.0 SDK;
I'm now far enough along to realize that I don't really need to
eliminate older versions, so I switched the Base SDK to 2.2.1.
I do, however, use the Security framework, specifically
SecRandomCopyBytes() to generate rand
I have the following code, which is a category on NSData. It is always
called on especially designated NSData objects with four bytes.
- (NSData *)resolve {
unsigned char *buf = [self bytes];
const unsigned char *newBytes[4] = { (buf[3] - 0x08), buf[2], buf[1],
buf[
On Tue, Jul 21, 2009 at 3:38 PM, Chase Meadors wrote:
> I have the following code, which is a category on NSData. It is always
> called on especially designated NSData objects with four bytes.
>
> - (NSData *)resolve {
>
> unsigned char *buf = [self bytes];
>
> const unsigned char *ne
Chase Meadors wrote:
I have the following code, which is a category on NSData. It is always
called on especially designated NSData objects with four bytes.
- (NSData *)resolve {
unsigned char *buf = [self bytes];
const unsigned char *newBytes[4] = { (buf[3] - 0x08), buf[2],
b
On Jul 21, 2009, at 1:28 PM, Randall Meadows wrote:
I started working on a new project, and started out using the 3.0
SDK; I'm now far enough along to realize that I don't really need to
eliminate older versions, so I switched the Base SDK to 2.2.1.
You don't actually need to use the 2.2.1
First of all, thanks a lot for all the effort! Seems my original
message was to long, so here is the shortened version:
There is also considerable "artifacting" during column drags and
resizing operations (also unaffected cells are often not redrawn
correctly after resizing, leading me to
Am 21.07.2009 um 21:11 schrieb David Duncan:
There is really no difference in if you want to have the view
controller or not. About the only thing to keep in mind is that if
you do use a view controller, don't use the orientation change
support.
Could you please elaborate on this?
I am
On Jul 21, 2009, at 2:01 PM, Alexander Spohr wrote:
I am very interested to know
- why it should be faster to do it in OpenGL
If you use the built in orientation support, then we place a transform
on the view's layer. A transform on OpenGL content will force your
rendering onto a slower pa
Thanks to Steve Christensen and Kyle Sluder for their responses to my
query. Setting the frame of my view, and letting the NSScrollView do
its thing, worked.
Christopher Henrich
chenr...@monmouth.com
mathinteract.com
___
Cocoa-dev mailing list
On Jul 21, 2009, at 12:55, Andrew Shamel wrote:
I'm looking for it to expand as its documentView expands.
The scrollviews are contained in a custom view called CardView,
which is itself inside a scrollview which I am happy to have act in
the usual fashion as the CardView gets taller and sho
Hi all,
I have the following code to initialize a borderless window for
"fullscreen"
- (void)initFullScreenWindow
{
NSScreen *theScreen = [[NSScreen screens] objectAtIndex:0];
NSRect screenRect = NSMakeRect(0, 0, [theScreen frame].size.width,
[theScreen frame].size.height);
On Jul 21, 2009, at 4:56 PM, ss2 cire wrote:
I have the following code to initialize a borderless window for
"fullscreen"
- (void)initFullScreenWindow
{
NSScreen *theScreen = [[NSScreen screens] objectAtIndex:0];
NSRect screenRect = NSMakeRect(0, 0, [theScreen frame].size.width,
[
Didn't there used to be a FAQ list for Cocoa-Dev?
Several people recently asked me for links to introductory Cocoa and
Cocoa Touch information. I pointed iPhone folks to http://developer.apple.com/iphone/library/navigation/GettingStarted.html
and the others to http://developer.apple.com/refe
Sorry. Right after I posted, I found http://www.cocoadev.com/index.pl?FAQs
On Jul 21, 2009, at 6:07 PM, Erik Buck wrote:
Didn't there used to be a FAQ list for Cocoa-Dev?
Several people recently asked me for links to introductory Cocoa and
Cocoa Touch information. I pointed iPhone folks t
I have a Gradient button. An NSButton with Bezel Style set to
NSShadowlessSquareBezelStyle. I would like to make the button appear with
the blue highlight at times. The best way for me to describe this is if look
at the segment control. It has three states on a segment, not selected,
mouse down on
Folks;
From my Cooca app I want to call an AppleScript with several
parameters one of which is an AppleScript record.
I've got everything about calling and return values working smoothly.
What I can't seem to get is how to create that parameter record.
I have been able to build AppleScript l
My error was that I changed a frame origin and forgot to accommodate
the change by increasing the frame size of the superview, thereby
clipping off the vertical scroll bar.
Ok - IB is a great tool with a few flaws. I love my new little compact
car, but I use my Eurovan when I go camping, or
On Jul 21, 2009, at 6:51 PM, Steve Cronin wrote:
From my Cooca app I want to call an AppleScript with several
parameters one of which is an AppleScript record.
[...]
When I look at the docs for -recordDescriptor and I see the 4
character code business - I get the ugly sinking feeling but m
On Jul 21, 2009, at 11:35 AM, Lynn Barton wrote:
My window has an NSImageView object within an NSScrollView. After
setting the image and the image frame, I want to detect and respond
to mouseDown on the image. The image appears in the view, but I
found nothing responding to the mouseDown.
Using [NSColor colorWithPatternImage:] appears to ignore the
resolution of the image. For example if I have a 100 x 100 pixel 600
dpi image, the pattern is rendered with 100 x 100 point tiles at 72
dpi, rather than 12 x 12 point tiles at 600 dpi. Is this intentional,
or is it a bug?
Also,
On 22/07/2009, at 2:42 AM, Nick Zitzmann wrote:
One thought: Are you using the -CGImage method of NSBitmapImageRep
anywhere? If so, then you absolutely must not deallocate the
NSBitmapImageRep while the CGImageRef is live, because the
CGImageRef acquired via -CGImage is still using the
N
71 matches
Mail list logo