ase do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/gandreas%40me.com
>
> This email sent to gandr...
wn website and
you can convert the CGI to support GET as well as POST.
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
___
Cocoa-dev mailing list (Cocoa-dev@lis
e
done on the main thread (which implies that there is a single, global
"ui graphics context" variable use by all of UIKit to indicate where
all UIKit based drawing should go).
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked
n application modal document, not a sheet.
So you can probably make it look right, but you won't be able to make
it work right (from the point of view of the user).
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/&g
t happens if the @implementation class details are different from
the @interface ones, and, again, not that I'd ever admit to having
done this, it is easy to accidentally write your implementation in
your .h file and leave the pasted @interface in your .m).
Glenn Andreas
ag the archived pasteboard from you
pasteboard manager app.
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
___
Cocoa-de
a sheet is not support to block the app like runModal does, but to
work in conjunction with document architecture.
You're basically fighting the frameworks, and the frameworks always
win...
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/>
quot;consumes" all
the touch events (i.e., implements everything, but does nothing), give
it a translucent gray background and make it the size of the window,
and add it as a subview of the window, on top of everything else.
Then add your modal content view on top of t
set the content inset & scroll bar inset
appropriately (which is what UITableViewController does). Way more
easy than messing with frames (not to mention works correct - moving
the frame will result in the other end of the scrolling range not
being reachable).
Glenn Andreas
ppear" instead of "viewWillAppear"?
Since the view technically isn't on screen yet (only that it "will
be"), setting a first responder shouldn't be done then.
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
hy not just draw it using one of the transfer modes like kCGBlendModeDarken or
kCGBlendModeMultiply rather than generate multiple images, tweaking all their
bits, custom kernels, etc...
Both modes should cause black pixels to be drawn as black, and white pixels to
not change the image at all
her than just replacing it with the appropriate migration
information).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
mic-page-curl.html
>
> --
> Gleb Dolgich
> http://pixelespressoapps.com
>
> On 6 Apr 2010, at 16:56, Laurent Daudelin wrote:
>
>> So, no other response from the regular crowd of "resident experts" on how
>> Apple engineers did this?
Glenn Andreas
egroundColor and
kCTForegroundColorAttributeName documented as the same.
So CTLineDraw expects to have the color specified as a CGColorRef in
kCTForegroundColorAttributeName, while drawString: expects to have the color
specified as an NSColor in NSForegroundColor.
Glenn Andreas
nce creation method being found in the
declaration:
- (NSParagraphStyle *) defaultParagraphStyle;
instead of:
- (id) defaultParagraphStyle;
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its
te to
be just a scalar value, with a separate time zone (and optional calendar) being
the "unit". It's up to the formatter used to display that (scalar) date in the
desired unit.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is
Those two produce different results, so comparing their efficiencies is
pointless. To make matters worse, "if ([super init] != nil)" is also wrong, so
it doesn't matter if it is more efficient.
Glenn Andreas gandr...@gandreas.com
The most
sn't been reached
yet), and the -[Transcript setProperty:ofObject:toValue:] may not be able to
deal with nil as the object parameter.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its c
various things in AppKitAdditions.
If you have specific things in mind that you need, you should file an
enhancement request at bugreporter.apple.com.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
n from the AppStore when you submit it)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-de
On Saturday, June 05, 2010, at 05:51PM, "WT" wrote:
>I need to hijack the set of touch events sent to a UITableView instance prior
>to allowing the table to process those events.
>
>I have a custom UIView, of which the table view is a subview, and I override
>-hitTest:withEvent: there (in the
information hierarchy to find what they need. To address this,
you should flatten your information hierarchy.
So once you spend hours and hours coding and getting this working perfectly, it
will probably end up being rejected by the AppStore approval process.
Glenn Andreas g
#x27; mean"? Since that document talks
about method names that match certain patterns, I'm guessing that it walks the
method table (instead of calling respondsToSelector:).
I'd just override valueForKey: and setValue:forKey: in your class to handle
forwarding those to your wrapped
nt to allow that item to
show, and then, upon scrolling, make sure the view is on the top of the screen
(both in Y and Z coordinates, since the table view may have made a new cell
that ends up layered covering your view)
Glenn Andreas gandr...@gandreas.com
T
R operator)
Nothing vague there. More likely the somebody that interviewed you didn't have
it correct in the first place, scarring you for life...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate al
to null. Animatable. */
@property CGPathRef shadowPath;
So not only does it have a shadow that you can change, you can even animate the
shadow.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all
the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com
>
> This email sent to gandr...@mac.com
Glenn Andreas gandr...@g
whether my view is under the cursor, and if not, just call the
> original implementation. However, method swizzling always feels like a dirty
> workaround so I'm not sure if it would be much better than this (and if it
> would be acceptable in the MAS).
Glenn Andreas
loadNibNamed:@"ComplexTableViewCell"
owner:self options:nil];
cell = [[self.loadedCell retain] autorelease];
self.loadedCell = nil;
}
// configure and return cell...
}
Not to mention that retained IB outlets also need to be nil'
nnection:didReceiveData:), but there's no problem with crashing or other
weird errors.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Not that that probably has a whole lot to do with NSDateFormatter returning
empty strings...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
_
r.
Ultimate, if you need to support older OS versions, you need to keep older
hardware around running that version (since newer hardware doesn't support
running OS versions that are older than what was originally shipped with the
device).
Glenn Andreas gandr..
nal property
and then synthesize it to use the original ivar
@synthesize sideEffectFreeValue=value;
and change your setter to:
- (void) setValue: (NSString *) value
{
self.sideEffectFreeValue = value;
[self setNeedDisplay: YES];
}
Glenn Andreas gandr...@gandr
hing key: (NSString *) ivarKey withTable: (NSString
*) tableName
{
NSString *key = [thing valueForKey: ivarKey];
...
NSString *rep = ...
...
[ thing setValue: rep forKey: ivarKey];
}
Glenn Andreas gandr...@gandrea
;
>
>
>
> ___
>
> 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/
e.g.
bookmarks button
@property(nonatomic)UITextFieldViewMode rightViewMode; // sets when
the right view shows up. default is UITextFieldViewModeNever
Seems like putting a button in the rightView that displays when not being
edited would work fit with what you described...
Glen
Class Problem.
The problem is that a subclass (in 32 bit OS X) needs to know the size of the
superclass so it know how to lay out its ivars. If there is no explicit ivars,
there is no way for the compiler to know the size (since when it is compiling
the subclass it doesn
f you actually link against X-1
(and manually add that flag from the X SDK) who knows what you'll get.
Unlikely, but I wouldn't be surprised if this sort of thing hasn't bitten
somebody at some point... (though probably with things like side effects of
methods, and not differen
s close as the 38 decimal digits of NSDecimal).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-d
t
can occur with floating point parsing (for example, you're code also misses
handling things like "+123")
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - H
MyRootViewController.nib" is only an outlet in the sense that
the view controller's nibName ivar will be set to "MyRootViewController.nib"
(which it will be during awakeFromNib).
The whole purpose of having separate nibs is to avoid recursively loading
everything all at once - i
is used elsewhere (without
> subclassing), with no problems. What am I missing?
>
>
>
That's a classic memory management problem.
Most likely, you're forgetting to unregister your observer when you are
deallocating it (resulting in a notification center to have a s
ted the parser (which knows not a
thing about your concepts of "Error" and "ErrorMessage" as returned by the
server):
- (NSError *)parserError; // can be called after a parse is over to
determine parser state.
This error is the parser state, which since you explicitly
than
what the file publicly presents (i.e., attempting to reading alpha from a file
that has tags declaring it to not have alpha would be non-conformant with the
TIFF spec).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is t
a table view, just push a second table
view onto the navigation controller and let the user select the element from
that table view, just like Settings.app does, etc...)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability o
e reserves the use of this convention. Use
by third parties could result in name-space collisions; they might unwittingly
override an existing private method with one of their own, with disastrous
consequence."
You may be seeing one of those "disastrous consequences"
Glenn Andreas
ome&ie=UTF-8&q=UIKeyboard+class+reference+site%3Aapple.com
>
> Jeff
You can always have the text field be way off screen (that's the easy way, and
works on older systems), or you can have a view that implements the various
UIKeyInput protocol methods and h
gether.
If you wanted to ignore that first character distinction, prepend your strings
with a character like "X" that is unlikely to be a first character (since
otherwise you'll get into trouble with its "drop double letters" step). The
code appears to not care wha
e list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com
>
> This email sent to gandr...@mac.com
Glenn Andreas gandr...@gan
coa-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/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mail
On Nov 29, 2009, at 9:38 AM, Symadept wrote:
> Hi,
>
> How can I scale my button or Label to be able to accomodate the localized
> string?
>
> Any clues.
>
> Regards
> symadept
That's the whole purpose of being able to localize the nib/xib...
Glenn An
ol
actually consider their content area to be much larger while tracking for
better user experience), is entirely up to you. You can always test their
location and ignore them...
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dan
o other
responders in your application, all of these responders should be instances of
your own subclasses of UIView.
It's definitely worth reading, and re-reading, those docs - all sorts of nice
explanations of how touch handling is handled can be found there...
Glenn Andreas
On Saturday, December 12, 2009, at 11:32AM, "Ben Haller"
wrote:
>>> You should not compare floating point numbers for equality in most
>>> cases. This is true of any language on any platform.
>>
>> Indeed, some floating-point numbers (such as the one represented by
>> the integer 0x7fc0
ass UIApplication and override sendEvent: - this can get ugly from an
architecture point of view (since you no longer have a nice little reusable
view - you've got to do major surgery on the application itself), and
sendEvent: does a whole lot of work that you'll want to be carefu
yle thing - dynamically figure out what to call based
on the SEL passed in)...
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
___
Cocoa-dev mailing list (Coc
nt too but it doesn't.
>
> This sounds like a good time for the view to post an NSNotification. The
> subview can then respond to it. m.
Or just mark the subview as needing layout and then have the subview figure
things out in layoutSubviews.
Glenn Andreas
CFBundle has routines for looking up both functions and data by name. It does
require you figure out what framework the symbol comes from (and then get the
corresponding CFBundle), but it is doable.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the w
zone has been specified, or
the current system time zone). If your time zone changes (such as by daylight
savings time, or changing the location), the resulting date will print
differently, but timeIntervalSinceReferenceDate will be unchanged. It is
ultimately the date formatter
uot;generators" that take a time value and create a value - it's up to the layer
to decide what to do with that value.
You can always use CALayer's animationForKey: to find out if it the animation
for a specific key:
if ([theLayer animationForKey:@"fadeIn"]
o useful drawRect:)
- all of their rendering is handled by the view's layer.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
On Jan 13, 2010, at 9:46 PM, Michael Gardner
wrote:
On Jan 13, 2010, at 5:07 PM, glenn andreas wrote:
On Jan 13, 2010, at 4:48 PM, Michael Gardner wrote:
I also tried calling -drawRect: on my hidden view (after setting
the context with UIGraphicsBeginImageContext()), but it doesn
) but this approach works
reasonable for handling things like animated GIFs (provided that you write the
code to decode the GIF files into the frames you need).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ...
The XML spec does not require '>' to be escaped as '>' (except in
the case of ']]>' when that doesn't mark the end of a cdata section).
Only '&' and '<' must be escaped - see section 2.4 of XML 1.0 spec.
Sent from my iPhone
On Feb 9, 2010, at 2:19 PM, Keith Blount wrote:
Hello,
I'm usi
gt; but no success.
> I want to use ImageIO from C++, that should be possible, shouldn't it?
>
Not on the iPhone - file an enhancement request...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the worl
al/initial forms).
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
m.o.t.e.s. | minute object twisted environment simulation
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please d
highlighting will give the trick
away:
~Martin
What about [NSColor clearColor] instead of white?
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human
mind to correlate all its contents - HPL
___
tents copied en-masse, by adding the folder
as a reference instead of a group.
- You can manually copy the files where ever you want in a shell
script build phase
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad,
er-to-peer connections to understand the ramifications of trying to
have one random device talk to another random device.
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve
r,
and have it forward packets between them, but that approach does not
scale well.
You're really going to have to do some more research on networking and
peer-to-peer connections to understand the ramifications of trying to
have one random device talk to another random device.
G
com - this issue has been discussed
in detail and sample code that actually works can be found there...
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
___
Co
classes in the system (using the various routines in the runtime),
and check to see if bundleForClass returns the bundle you are looking
for.
If it hasn't been loaded, you can parse the macho file format and
examine the objective-c sections, but that's a lot of work...
Gle
d need to do is:
CGPoint pt = pPngButton.verticalLoc;
pt.x = (bVerticalDisplay == YES) ? 250 : 410;
pPngButton.verticalLoc = pt.x;
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
_
Go to devforums.apple.com/community/iphone and search there - this has
been discussed, with solutions, there...
Sent from my iPhone
On Jul 29, 2009, at 10:35 PM, norio ota wrote:
Hi,
I'd like to prevent UIWebView from selecting an area and showing the
"Copy" menu item.
I tried subclass
Bonjour for one phone to discover the other phone (which will
automatically handle finding/resolving/advertising ip address/ports).
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
___
manually, such as:
po [theWebView stringByEvaluatingJavaScriptFromString @"'' +
document.getElementByName('encrypted')"]
That will show you if there really is something there like you expect.
Most likely, you're calling it at the wrong time, before the c
them via public IP addresses.
Of course, in the context of the original question (re: iPhone
networking), the iPhone is almost never going to have a public IP
address (being hidden behind WiFi or cell phone NATs).
Glenn Andreas gandr...@gandreas.com
<http://www.g
g the shared cache to that new instance.
But it absolutely did work - once implemented, my "set the table view
cell's image to an image from the net" works nicely (and without it
scrolling was painful at best).
Glenn Andreas gandr...@gandreas.com
<htt
.. (change the accessoryType of the selected row, go through
and remove the check mark from the previous one).
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, ani
On Aug 13, 2009, at 8:44 AM, Brian Slick wrote:
On Aug 13, 2009, at 8:31 AM, glenn andreas wrote:
You're using a sledge hammer (reloadData) when you need a small
screwdriver.
From UITableView.h:
- (void)reloadData; // reloads everything from
scratch. redisplays vi
- no need to fork off an extra task and parse
the output when you can just look at the information directly...
Glenn Andreas gandr...@gandreas.com
<http://www.gandreas.com/> wicked fun!
m.o.t.e.s. | minute object twisted environment simulation
___
ytesForKey:@"continuations"
returnedLength:&size];
NSAssert(size == [self continuationsSize] * sizeof(float), @"Bad size
of bytes returned from decoding");
memcpy(continuations, bytes, size);
Glenn Andreas gandr...@gandreas.com
The most merci
of the table cell (or detail disclosure).
If your goal is just to display "styled text" inside a table row, you can use
things like NSAttributedString/CoreText (or for pre 3.2 support,
CFAttributedString & custom drawing routines).
Glenn Andreas gandr...@gandre
GImage:(CGImageRef)cgImage] and add it to an NSImage if you're using
10.5?
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
p on using AppKit's NSAttributedString extensions
all together, and switch to the CoreText ones (and take advantage of the
CFAttributedString/NSAttributedString toll free bridging).
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the ina
r to
the electrical, and wondering why your water tastes tingly...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-
gt; googling, and found something for text, but not just for a simple square
> shape.
Draw with CGContextShadow set appropriately, or set the shadow property of the
CALayer of the UIView (if you are requiring iOS 3.2 or later)
Glenn Andreas gandr...@gandreas.com
The mo
View, so you can just set the scrollbar
type.
However, like UIScrollView, you are limited to three choices - all black, all
white, or black with a white border...
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the h
asing the (what will be the old) string value,
which causes the text fields text ivar to point to garbage.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
all
sorts of other gory details and special cases. Even for US cases, there are
people who set their time format to use 24 hour time and so would expect to see
"13:00" and not "1:00p".
Bottom line is trying to display time in a non-standard format is going to be
problematic a
get the same data? Is it a bug?
RTFDFromRange returns an archived (flattened) version of RTFD, which is
undocumented but probably includes things like time stamps or unique IDs. So
it is not a bug - archiving the same original data is not guaranteed to return
byte-for-b
block, so when scripts are running, the
user is not able to interact with the webpage.
So one of your routines (I'm guessing rcs.invoke) is taking a long time (more
than 10 seconds - perhaps it is waiting for some networked based action to
complete). So if your JavaScript code is w
information somewhere, but can we get (read)
> access to that programmatically?
>
CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human
tines to do the
compression/decompression.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate all its contents - HPL
___
Cocoa-dev mailing list (Cocoa-dev
180 degrees!!,
> CGFloat a = atan2(-dx,dy);
atan2's parameters are declared as:
double atan2(double y, double x);
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
correlate al
t both pre 3.2, and 3.2/4.x
(since not only are the keyboard notifications different, but it deals with the
view being presented in the variety of different ways - sheet, full screen,
etc...)
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is
ut launch time to a minimum, and you should design a
launch image that downplays the experience rather than drawing attention to it.
>
So Default.png is not suppose to be a splash screen, and you're suppose to
strive to make it go away as fast as possible - not figure out wa
g 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/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/gandrea
navigation stack would cause the tabs to be displayed for that
screen only and not for any others.
What you are attempting to do is going to be an issue that can get prevent your
app from being approved in the App Store. Rethink your UI design and approach
- you'll be better off in the long ru
localization).
If you hard code this into your code, you've got to hard code in all the
differences in device layout as well as any localization specialization.
Glenn Andreas gandr...@gandreas.com
The most merciful thing in the world ... is the inability of the human mind to
cor
1 - 100 of 209 matches
Mail list logo