Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.gnustep.bug > #4323
| Path | csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Ivan Vučica <INVALID.NOREPLY@gnu.org> |
| Newsgroups | gnu.gnustep.bug |
| Subject | [bug #53994] Can't set a value on keypath using NSValue containing a size |
| Date | Sun, 27 May 2018 13:49:58 -0400 (EDT) |
| Lines | 81 |
| Approved | bug-gnustep@gnu.org |
| Message-ID | <mailman.583.1527443406.1292.bug-gnustep@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain;charset=UTF-8 |
| X-Trace | usenet.stanford.edu 1527443407 3515 208.118.235.17 (27 May 2018 17:50:07 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | Ivan Vučica <ivan@vucica.net>, bug-gnustep@gnu.org |
| Envelope-to | bug-gnustep@gnu.org |
| X-PHP-Originating-Script | 1001:sendmail.php |
| X-Savane-Server | savannah.gnu.org:443 [208.118.235.79] |
| X-Savane-Project | gnustep |
| X-Savane-Tracker | bugs |
| X-Savane-Item-ID | 53994 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 |
| X-Apparently-From | 109.255.23.171 (Savane authenticated user ivucica) |
| In-Reply-To | |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] |
| X-Received-From | 208.118.235.79 |
| X-BeenThere | bug-gnustep@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNUstep programming environment <bug-gnustep.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-gnustep/> |
| List-Post | <mailto:bug-gnustep@gnu.org> |
| List-Help | <mailto:bug-gnustep-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.gnustep.bug:4323 |
Show key headers only | View raw
URL:
<http://savannah.gnu.org/bugs/?53994>
Summary: Can't set a value on keypath using NSValue
containing a size
Project: GNUstep
Submitted by: ivucica
Submitted on: Sun 27 May 2018 05:49:56 PM UTC
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
```objective-c
#import <Foundation/Foundation.h>
@interface A : NSObject
{
NSSize _s;
}
@end
@implementation A
- (NSSize) s {
return self->_s;
}
- (void) setS: (NSSize) s {
self->_s = s;
}
@end
int main() {
NSSize in = NSMakeSize(1.0, 2.0);
NSValue * v = [NSValue valueWithSize: in];
/*
originally observed with:
NSValue * v = [NSValue valueWithBytes: &in
objCType: @encode(NSSize)];
*/
A * a = [A new];
[a setValue: v
forKey: @"s"];
return 0;
}
```
Output:
```
$ clang `gnustep-config --objc-flags` `gnustep-config --objc-libs`
`gnustep-config --base-libs` repro.m -o repro && ./repro
clang: warning: argument unused during compilation: '-fobjc-nonfragile-abi'
clang: warning: argument unused during compilation: '-fobjc-nonfragile-abi'
2018-05-27 18:45:53.501 repro[14679:14679] match! point is {_NSPoint=dd}, type
is {_NSSize=dd}
./repro: Uncaught exception NSInvalidArgumentException, reason:
[GSSizeValue-pointValue] should be overridden by subclass
Aborted
```
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53994>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
Back to gnu.gnustep.bug | Previous | Next | Find similar
[bug #53994] Can't set a value on keypath using NSValue containing a size Ivan Vučica <INVALID.NOREPLY@gnu.org> - 2018-05-27 13:49 -0400
csiph-web